Telegram
On this page
Telegram alerts come from @RoundBeatBot, RoundBeat’s shared bot, or from a bot of your own. They can go to a direct chat, a group, a supergroup or a channel. The shared bot sends only to chats linked to your organization.
Set it up
With the RoundBeat bot there is no chat ID to look up: someone in the chat sends the bot a one-time code, and that links the chat to your organization. To send from a bot of your own instead, see Send from your own bot.
- In My Alerts → Destinations, press Add destination (it opens on Telegram) and name it. Keep RoundBeat bot selected.
- Press Get a link code. The dialog shows the code, the bot’s link and a group command, each with a copy button.
- Send the code to the bot from the chat that should get alerts:
- A direct message: open the bot’s link and press Start.
- A group: add @RoundBeatBot to it, then send
/link@RoundBeatBot <code>. The@part makes sure the bot sees the command in a group.
- Wait for the reply. The bot answers
Linked to <your organization>, and the dialog changes from Waiting for /start… to Linked with the chat’s name. Add destination becomes available. - Press Add destination, then Test on its row.
Link codes
- Owners and admins get link codes.
- A code works once, for 30 minutes, and only for the organization that made it. If it runs out before the bot sees it, the dialog offers a new one.
- The bot replies “That code is not valid” to a code that was used, ran out or was mistyped. Get a new one.
Move a destination to another chat
Press Edit on the destination’s row, then Link a different chat, send the new code from the other chat as above and save.
Destinations added before linking
RoundBeat-bot destinations added before chat linking were linked to their chats when it shipped. They keep working; there is nothing to link again.
Send from your own bot
- Create a bot with @BotFather and copy its token, such as
123456789:AAH…. - Add your bot to the chat and get the chat ID, for example by forwarding a message to @getmyid_bot (chat IDs).
- In Add destination → Telegram, choose My own bot and paste the Chat ID and the Bot token.
- Press Add destination, then Test on its row.
A destination with your own bot needs no link code: the chats your bot is in are your own. The token can be set only when you add the destination; to change it, add a new destination.
Chat IDs
Only a destination with your own bot takes a chat ID:
- A positive ID is a direct chat, for example
12345678. - A plain negative ID is a group.
-100…is a supergroup or channel, for example-100123456789.- A public channel’s
@usernameworks too.
A group upgraded to a supergroup gets a new -100… ID. With the RoundBeat bot, link the chat again (Link a different chat); with your own bot, update the chat ID.
Topics (message threads) inside a group are not supported: alerts go to the main chat.
What a message looks like
A bold title, the details, and a severity line: 🚨 CRITICAL, ⚠️ WARNING or ℹ️ INFO. Long messages are shortened to fit Telegram’s limit of 4,096 characters. Every alert notifies as usual except an outage’s recovery, which is sent without a notification sound (the recovery).