Telegram Notifications¶
Send notifications to Telegram channels, groups, or direct messages.
Quick Setup¶
1. Create a Bot¶
- Message @BotFather on Telegram
- Send
/newbotand follow the prompts - Copy the bot token (looks like
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
2. Get Chat ID¶
For channels: 1. Add your bot to the channel as admin 2. Send a message to the channel 3. Visit https://api.telegram.org/bot<TOKEN>/getUpdates 4. Find the chat.id (negative number for channels)
For groups: 1. Add your bot to the group 2. Send a message in the group 3. Visit the getUpdates URL above 4. Find the chat.id
For direct messages: 1. Start a chat with your bot 2. Send any message 3. Visit the getUpdates URL 4. Find your chat.id
3. Create Subscription¶
Configuration Options¶
| Option | Type | Required | Description |
|---|---|---|---|
bot_token | string | ✅ | Telegram bot token from BotFather |
chat_id | string | ✅ | Channel/group/user chat ID |
parse_mode | string | ❌ | MarkdownV2 (default) or HTML |
disable_preview | boolean | ❌ | Disable link previews |
Message Format¶
Messages use MarkdownV2 formatting:
Text Only
🆕 *New MCP Server Added*
*awesome\-database\-tool* has been added to the MCP Registry\!
📦 Version: `1\.2\.0`
📝 Description: A database integration for AI assistants
🔗 [Repository](https://github.com/example/awesome-database-tool)
_Detected at 2026\-01\-05 10:30:00 UTC_
Rate Limits¶
Telegram has strict rate limits:
- 30 messages per second to the same chat
- 20 messages per minute to the same group
- Automatic retry with exponential backoff
Troubleshooting¶
Bot not sending messages?
- Verify the bot token is correct
- Ensure the bot is added to the channel/group
- For channels: bot must be an admin
- Check the chat ID format (negative for channels)
Getting "Bad Request" errors?
Chat ID might be wrong. Re-fetch using:
Messages not formatting correctly?
MarkdownV2 requires escaping special characters: _, *, [, ], (, ), ~, `, >, #, +, -, =, |, {, }, ., !