Proxmox send notifications to telegram

How to configure Proxmox notifications via Telegram API using webhooks.

image

As mentoned on screenshot, you just need to add in Datacenter -> Notifications -> Notification Targets -> Add -> Webhook

Fill next fields

  • Endpoint Name: (Something useful)

  • Method/URL: POST: https://api.telegram.org/bot{{ secrets.token }}/sendMessage

  • Headers:

  • Key: Content-Type
  • Value: application/json

  • Body:

json { "chat_id": "{{ secrets.chat_id }}", "parse_mode" : "MarkdownV2", "text": "}" }

  • Secrets:
  • key: token
  • value: <recipient or group id for notification>

  • Comment: (Something useful or leave blank)

Dont forget to add this newly created contact as recipient in "Notification Matchers"