The Telegram integration sends alerts to a Telegram chat through LivePulser's bot, @livepulserbot. You don't create a bot or copy a token: the dashboard gives you a link, the bot sends a code to the chat that opens it, and you enter the code in the dashboard.
Before you start
You need a Telegram account and the owner, admin or member role in LivePulser. The link and its code work for 10 minutes after you select Start integration. Selecting it again, or reloading the page, gives you the same link until a chat has used it.
Connect Telegram
- Open Integrations & API and select Telegram, or select Telegram under Connect a new service in a monitor's alert settings. Select Start integration.
- Select Open in Telegram and press Start in the chat with the bot. To get alerts in a group instead, select Add to a group and pick the group.
- The bot replies in that chat with a 6-digit code.
- Back in the dashboard, enter a Display name and type the code into Verification code.
- Optionally tick Validate with simple message, then select Connect Telegram. With the box ticked, the bot posts a welcome message after the integration is saved. If that message fails, the integration is still saved.
Alerts go to the chat that opened the link. Once connected, the integration shows the Telegram Chat ID it sends to.
Attach it to a monitor
On the monitor's page, select Alerts, select the Telegram integration under Integrations, and select Save changes. When you connect Telegram from a monitor's alert settings, an integration of this type is selected for the monitor automatically; check it's the new one if you have several.
Check that it works
Select Send test notification on the monitor's page. The bot posts a test alert for TEST: and your monitor in the chat, with a button that opens the monitor. The integration's own Test button sends a sample message instead.
What the message contains
Alerts are titled Incident Alert or Incident Resolved (SSL/TLS Issue Detected and SSL/TLS Issue Resolved for SSL problems) and show the affected monitor, the time, the error or recovery note, and a View Incident button. An unexpected cron run sends a short Unexpected run message, a domain expiry reminder a short Domain expires soon or Domain expired message, and a certificate expiry reminder a short Certificate expires soon message.
Busy chats
Telegram limits how fast a bot can post: about one message a second to a chat and 20 a minute to a group. When many alerts go to one chat at once, LivePulser spaces them out, and alerts that are waiting for the same chat are combined into one LivePulser: N alerts message that lists each monitor, with an Open incidents button. Nothing is dropped because of these limits; some alerts just arrive a little later. If a group is upgraded to a supergroup, which gives it a new chat ID, alerts follow it to the new ID by themselves.
Common problems
| What you see | Cause and fix |
|---|---|
| The bot says "This link has expired" | More than 10 minutes passed, or the link was replaced: once a chat has used a link, selecting Start Integration again gives a new one. Use the newest link from the dashboard. |
| The bot says "This link was already used in another chat" | Each link connects one chat. Select Start Integration again to get a new link for the other chat. |
| The bot says "To connect this chat, open LivePulser" | The message reached the bot without your link's code word, for example a plain /start. Use Open in Telegram from the dashboard, or send the full message the dashboard shows. |
| The bot doesn't reply in a group | Telegram may not pass a plain command in a group to the bot. Use Add to a group, or send the group version of the message (/authme@livepulserbot and the code word). |
| Open the link in Telegram first, then enter the code the bot sends you. | The bot hasn't sent a code for this connection yet. Open the link and press Start, then enter the code it sends. |
| That code is not right. | The code was mistyped or came from an earlier link. Check the newest message from the bot and try again. |
| Too many wrong codes. Start again to get a new link. | After 5 tries the connection is cancelled. Select Start Integration and repeat the steps. |
| No Telegram connection is in progress, or it expired. Start again. | More than 10 minutes passed, or you didn't select Start Integration first. Select Start Integration and repeat the steps. |
| Please enter a valid 6-digit Telegram OTP code. | Enter all six digits. |
| The integration shows Not delivering | Telegram refused an alert in a way only you can fix: the bot was blocked or removed from the group, the chat was deleted, or the bot isn't allowed to post. The notice in the integration says which. Fix it in Telegram, then send a test; a successful send clears the notice. Alerts refused this way are not retried. |
| Alerts stopped arriving | The bot can't post if you blocked it or it was removed from the group. Unblock or re-add it. To move alerts to a different chat, connect Telegram again from that chat and select the new integration on your monitors. |