How to Get Telegram Alerts from Uptime Kuma
Uptime Kuma watches your sites and servers, but a dashboard you never open will not wake you when a site goes down. Telegram alerts from Uptime Kuma fix that gap. Once connected, Uptime Kuma sends a message to your phone or group chat the moment a monitor fails, and another message when it recovers. This guide walks through the full setup: create a Telegram bot, find the right chat ID, connect it in Uptime Kuma, and test it before you trust it.
This guide assumes Uptime Kuma is already running. If it is not, start with the guide to install Uptime Kuma with Docker, then come back here. You also need a Telegram account and access to the Uptime Kuma dashboard.
Before You Start
Gather three things before you touch any settings. First, a Telegram bot token, which you get from BotFather. Second, a chat ID, which tells Telegram where to deliver the messages. Third, one monitor in Uptime Kuma to attach the notification to, even a simple HTTP monitor for your homepage will do for testing. Anyone with that token can send messages as your bot, so never paste it into a public chat, a screenshot, or a shared document.
Decide where alerts should land. A private chat with the bot works well for a solo admin. A Telegram group works better for a small team, because everyone in the group sees the same alert at the same time. Pick one destination for this guide, and add more later if you need them.
Create a Telegram Bot with BotFather
Open Telegram and search for BotFather, the official bot account with a verified check mark. Start a chat with it and send the command /newbot. BotFather asks for a display name first, then a username. The username must end in bot, for example uptime_alerts_bot, and it must be unique across Telegram. If your first choice is taken, try a variation with your site name in it.
BotFather replies with a token that looks like a long string of numbers, a colon, and letters. Copy that token and store it in a password manager. The uptime kuma telegram bot you create here only sends alerts, so it needs no admin rights on your server. Do not share it. If you ever suspect the token leaked, send /revoke to BotFather in the same chat and it issues a new token at once. You then update Uptime Kuma with the new token and the old one stops working.
One detail trips up many first setups. A bot cannot message you until you start a conversation with it. Open your new bot in Telegram and press Start, or send it any short message.
Find Your Telegram Chat ID
The chat ID is a number that identifies the destination. For a private chat, the easiest path is to message your bot, then open this URL in a browser, replacing TOKEN with your bot token: https://api.telegram.org/botTOKEN/getUpdates. Look for a chat object with an id field. That number is your chat ID for a private chat. If the result is empty, you have not messaged the bot yet, so send it a message and load the URL again.
For a group, add the bot to the group first, then send a message in the group that mentions the bot or simply any message after the bot joins. Load the same getUpdates URL again. Group chat IDs are negative numbers, for example -1001234567890, and the minus sign matters. Copy the full number, minus sign included. If you paste a group ID without the minus sign, Telegram sends the message nowhere useful and the test fails with a chat not found error.
An easier alternative for a private chat is the userinfobot account on Telegram. Start a chat with it and it replies with your user ID, which doubles as your private chat ID for bot messages. Use whichever method you find faster, but double check the number before you save it in Uptime Kuma, because a single wrong digit is the most common cause of silent failures.
Set Up Telegram Alerts from Uptime Kuma
Open the Uptime Kuma dashboard and go to Settings, then Notifications. Uptime kuma notifications live in that panel. Click Setup Notification and pick Telegram from the list. Fill in the bot token and the chat ID exactly as you copied them. Leave the default message settings alone for the first test. Uptime Kuma fills in a sensible alert format that includes the monitor name, the status, and the time, which is enough to act on at 3 a.m. without opening the dashboard.
Click Test to send a trial message. You should see it in Telegram within a few seconds. If it arrives, click Save. If it does not, work through the failure checklist in the troubleshooting section below before you change anything else.
Now attach the notification to a monitor. Open a monitor, or create a new one, and find the Notifications section in its settings. Tick the Telegram notification you just saved. Repeat this step for each monitor that should alert you. A notification that is saved but never attached to a monitor sends nothing, and this is the second most common reason people think the setup failed when it actually never started. If you run Uptime Kuma behind a domain, put Uptime Kuma behind Nginx Proxy Manager so the dashboard itself runs over HTTPS and stays reachable from a clean address.
Test Alerts the Way a Real Outage Works
A successful Test button press proves Telegram delivery works, but it does not prove your monitors will alert you during a real outage. Create a throwaway monitor that points at a URL you control, then stop that service for a minute. A simple way to do this is to point a monitor at a port on your server that nothing listens on, for example your server IP with port 59999. Uptime Kuma marks it down within one or two check intervals, and the alert should arrive in Telegram.
Watch for two messages: the down alert and the recovery alert after you remove the bad monitor or restore the service. If you only get the down alert, check the monitor settings for the retry count. Some setups wait for two or three failed checks before they mark a monitor down, which delays the first alert by design.
Test once more after any change to the bot token, the chat ID, or the server network. A token revoked in BotFather, a bot removed from a group, or a server that loses outbound internet access each break delivery on their own. If you want a second opinion on hosted options before you commit to self hosting, read Uptime Kuma compared with hosted monitoring services to see where each approach fits.
Fix the Most Common Problems
When the Test button fails, check these items in order. First, confirm the bot token has no extra spaces at the start or end. Copying from a chat message often adds a trailing space that is hard to see. Second, confirm you pressed Start on the bot, or added it to the group, before testing. Third, confirm the chat ID, including the minus sign for groups. Fourth, confirm the server running Uptime Kuma can reach the internet, because Telegram delivery needs an outbound connection from that server, not from your phone.
- Chat not found: the chat ID is wrong, the minus sign is missing, or the bot is not in the group yet.
- Bot blocked by user: you have not started the bot, or you blocked it after setup. Press Start again.
- Unauthorized token: the token was revoked or copied wrong. Get a fresh token from BotFather.
- No alert during an outage: the notification is saved but not attached to that monitor.
- Duplicate alerts: the same notification is attached twice, or two identical entries exist. Delete the extra one.
- Alerts arrive late: the monitor retry count or check interval is high. Lower the interval for critical monitors only.
Two security habits close out the setup. Keep the Uptime Kuma dashboard itself behind a login you trust, and lock down the server with UFW so only the ports you need stay open. A monitoring tool that anyone can open tells an attacker exactly which of your services are down and when, which is useful information to hand out for free. Treat the dashboard as internal infrastructure, not a public page.
With the bot token saved, the chat ID verified, and one real down and recovery test passed, your monitors now reach you wherever Telegram does. Add the remaining monitors one by one, test the critical ones, and keep the test habit monthly so a quiet failure never stays quiet for long.