Skip to content

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 @channelname for a public channel.
  1. In Telegram, create a bot with @BotFather. Copy the bot token it gives you.
  2. Add the bot to the group or channel that should get alerts.
  3. In obsrvly, in New alert channel, choose Telegram.
  4. Enter a Name, the Bot token and the Chat ID.
  5. Select Create channel, then send a test alert (10.9).

What obsrvly accepts#

FieldFormatError if wrong
Bot tokenDigits, a colon, then letters, digits, _ or -. Spaces around it are removed.telegram_bot_token must look like 123456:ABC-DEF… (from @BotFather)
Chat IDA 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).

Last updated