Send automated alerts to Telegram chats or groups using the Bot API.
Configuration Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| BotToken | Yes | string | Telegram Bot API token |
| ChatId | Yes | string | Target chat ID (user, group, or channel) |
| Body | Yes | string | Message text |
| ParseMode | No | string | Formatting: MarkdownV2 or HTML |
Example Configuration
BotToken = 123456789:ABCdefGHIjklMNOpqrsTUVwxyz
ChatId = -1001234567890
Body = 🚨 *Alert*\: Temperature exceeded threshold
ParseMode = MarkdownV2Setup Instructions
- Message @BotFather on Telegram
- Send
/newbotand follow the prompts - Copy the Bot Token provided
- Add the bot to your group/channel
- 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
sendMessageendpoint - Retry: Automatic retry on server errors