Skip to content

Notification Hub: WebHook Examples

Part of Notification Hub.

Send messages to a Telegram chat via Bot API.

Prerequisites:

  1. Open Telegram and search for @BotFather
  2. Send /newbot and follow the instructions to get your bot token
  3. Send any message to your bot, then open in a browser:
    https://api.telegram.org/bot<TOKEN>/getUpdates
  4. Find "chat":{"id": 123456789}: that number is your chat_id

Configuration:

Field Value
URL https://api.telegram.org/bot<YOUR_BOT_TOKEN>/sendMessage
Method Post
Body Type Json
Auth: Type None

Body:

{
"chat_id": "YOUR_CHAT_ID",
"text": "%subject%\n\n%body%"
}

The message is sent as plain text. Do not add parse_mode: "HTML": the placeholders are not escaped for HTML, so a < or & in a notification would be read as markup.