Telegram integration
Telegram is one of the best free ways to get an alert on your phone. You create a small bot once, and Uptimecat sends it messages.
What you get
Uptimecat sends messages through a Telegram bot that you own. The bot posts to a person, a group or a channel. Telegram pushes the message to the phone quickly, even on a slow connection.
This is the channel to pick when you want a phone alert without paying for an SMS or push service. It also works well on phones where chat apps are allowed to run in the background, which matters on some devices. See the Huawei and Android notification guide.
- Alerts to a private chat, a group or a channel.
- Option to send silently, without sound.
- Option to protect messages from forwarding.
Add Telegram in the dashboard
- In Telegram, open a chat with BotFather, send /newbot, choose a name and a username, and copy the bot token it returns.
- Open a chat with your new bot and press Start. A bot cannot message you until you do this. For a group, add the bot to the group.
- Find the chat ID. For a private chat, it is your numeric user ID. For a group, it is a negative number. Bots such as userinfobot, or the getUpdates call of the Telegram Bot API, will show it.
- Sign in at the dashboard and open Settings, then Notifications.
- Click Setup Notification and choose Telegram as the notification type.
- Give the channel a clear name, for example the team or room that will receive it.
- Paste the bot token and the chat ID.
- Press Test. A test message should arrive within a few seconds. If it does not, fix the channel before saving.
- Save. Then open each monitor you care about, tick the new channel under notifications, and save the monitor. You can also tick Default enabled or Apply on all existing monitors while creating the channel.
Fields you will see
| Field | What to enter |
|---|---|
| Bot Token | The token from BotFather. Keep it secret. Required. |
| Chat ID | Numeric ID of the person, group or channel. Required. |
| Message Thread ID | Only for topics inside a group. Optional. |
| Send Silently | Delivers without sound. Useful for non-urgent monitors. |
| Protect Forwarding/Saving | Stops recipients from forwarding the message. |
What a message looks like
The message has the monitor name, the state and the reason, in one or two lines.
[Example site] [Down] Request failed with status code 502
[Example site] [Up] 200 - OKTroubleshooting
- Error saying chat not found: you did not press Start on the bot, or the chat ID is wrong. For groups, check the minus sign.
- Unauthorized: the token is wrong or was revoked in BotFather. Request a new one.
- Group alerts stop: if the group was upgraded to a supergroup, its chat ID changed. Look it up again.
- No sound: check the Send Silently option and the chat mute setting in Telegram.
Frequently asked questions
Does the bot see my other chats?
No. A bot only sees chats it is part of.
Can the whole team get alerts?
Yes. Add the bot to a group and use the group chat ID.
Is Telegram reliable enough for paging?
It is fast, but it is a chat app. For strict escalation, add PagerDuty.
Related
Open the dashboard
Sign in with your Google account to add a monitor and pick an alert channel. Access is currently limited to Moruk accounts; open sign-up is not available yet.