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
- Open your project and select Settings in the sidebar, then the Notifications tab.
- Under Add destination, choose Telegram in Channel, and enter a Name.
- Enter the Bot token, the Chat ID or public username, and, for a forum topic, the Topic ID (optional).
- Select Add destination.
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.
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.