10.6Telegram
Telegram alerts come from a bot (an automated Telegram account) that you create. You need two values:
- Bot token: the key that @BotFather in Telegram gives you when you create a bot. It looks like
123456789:AA.... - Chat ID: the chat the bot posts to. Use a number, such as
-1001234567890, or@channelnamefor a public channel.
- In Telegram, create a bot with @BotFather. Copy the bot token it gives you.
- Add the bot to the group or channel that should get alerts.
- In obsrvly, in New alert channel, choose Telegram.
- Enter a Name, the Bot token and the Chat ID.
- Select Create channel, then send a test alert (10.9).
What obsrvly accepts#
| Field | Format | Error if wrong |
|---|---|---|
| Bot token | Digits, a colon, then letters, digits, _ or -. Spaces around it are removed. | telegram_bot_token must look like 123456:ABC-DEF… (from @BotFather) |
| Chat ID | A number (groups and channels use a negative number), or @ and a name of 5 to 32 letters, digits or _. | telegram_chat_id must be a chat number such as -1001234567890, or @channelname |
The dashboard checks only that both fields are filled in. The format is checked when you select Create channel.
API: CreateTelegramChannel with name, telegramBotToken and telegramChatId. telegramBotToken always comes back empty, to the dashboard and to an API key; credentialHints gives its last characters (10.1).