Skip to main content

General

Telegram Notifications

Send alerts to Telegram chats via Bot API.

Send automated alerts to Telegram chats or groups using the Bot API.

Configuration Parameters

ParameterRequiredTypeDescription
BotTokenYesstringTelegram Bot API token
ChatIdYesstringTarget chat ID (user, group, or channel)
BodyYesstringMessage text
ParseModeNostringFormatting: MarkdownV2 or HTML

Example Configuration

BotToken = 123456789:ABCdefGHIjklMNOpqrsTUVwxyz
ChatId = -1001234567890
Body = 🚨 *Alert*\: Temperature exceeded threshold
ParseMode = MarkdownV2

Setup Instructions

  1. Message @BotFather on Telegram
  2. Send /newbot and follow the prompts
  3. Copy the Bot Token provided
  4. Add the bot to your group/channel
  5. Get your Chat ID using @userinfobot

Formatting Options

MarkdownV2

*bold* _italic_ `code` ~strikethrough~

HTML

<b>bold</b> <i>italic</i> <code>code</code>
warning
Escape Characters

In MarkdownV2 mode, escape special characters with backslash: \. \! \- \( \)

Internal Behavior

  • Method: POST to sendMessage endpoint
  • Retry: Automatic retry on server errors