Skip to main content
A Telegram destination posts a short message to a chat each time an incident opens, changes, or resolves. Squasher sends the messages through a Telegram bot that you create and own.

What you need

  • A Telegram bot and its token. Create the bot with BotFather. Keep the token secret: it controls the bot.
  • The chat that gets the alerts: a private chat, a group, a supergroup, or a channel.
  • The owner, admin, or security admin role in the Squasher organization.

Connect Telegram

1

Add the bot to the chat

Add the bot to the group or channel. In a channel, let the bot post messages. For a private chat, open the bot and send /start.
2

Find the chat ID

Use the numeric chat ID, for example -1001234567890, or the @username of a public group or channel. For a forum topic, also find the topic’s numeric ID.
3

Add the destination in Squasher

  1. Open your project and select Settings in the sidebar, then the Notifications tab.
  2. Under Add destination, choose Telegram in Channel, and enter a Name.
  3. Enter the Bot token, the Chat ID or public username, and, for a forum topic, the Topic ID (optional).
  4. Select Add destination.
Squasher asks Telegram for the chat with the bot token. If Telegram does not find it, you see “Telegram could not access this chat. Check the bot token, chat ID, and bot membership.”
4

Send a test

Select Send test next to the destination. The chat gets “Squasher test notification. Telegram delivery is working.” Check the result under Recent deliveries.
Squasher adds the new destination to the default route, which sends the opened and resolved events of every incident. To send other events or only some incidents, see Choose which incidents go where.

What Squasher sends

Messages are plain text, with link previews off, and at most 4,000 characters.

Limits

  • The check when you add the destination proves that the bot can see the chat, not that it can post there. Use Send test to check delivery.
  • When Telegram limits the message rate or has a server error, Squasher tries again. It waits at least as long as Telegram asks, and stops after three attempts. Squasher does not retry other errors, such as a chat that blocked the bot.
  • Comment mentions are not sent to Telegram.
  • Squasher encrypts the bot token and never shows it again. You cannot edit a destination: to use a new token, remove the destination and add it again.

Next steps

Notifications

Routes, events, and delivery rules for every destination.

Notifications API

Create Telegram destinations over HTTP.