Communication

Telegram

Get UptimeWarden alerts in Telegram, direct messages, group chats, or topics, via your own bot in under five minutes.

In the app: Notifications › Webhook endpoints

Telegram is the personal-mobile chat client of choice for many engineering teams, fast, free, and it puts notifications in the same place as your other chats. UptimeWarden configures Telegram as a Webhook that calls your bot's Telegram Bot API sendMessage endpoint directly, with proper Markdown formatting.

Plan availability

Telegram is available on every plan, including Free. Messages are sent as webhooks, so each one counts against your plan's monthly webhook quota (1,000 webhook sends per month on Free). Telegram's own rate limits apply on top. See Notifications for every plan's quotas.

How it works

UptimeWarden                  Telegram Bot API
─────────────                ──────────────────
Monitor down ──> bot_token + chat_id ──> sendMessage
                                          │
                                          ▼
                                    Your chat

Each user owns their own bot. UptimeWarden does not provide a shared bot, which keeps you in control of the rate limits and avoids the "1 bot, 1000 customers" rate-limit ceiling that Telegram enforces.

Step 1. Create a bot via @BotFather

  1. Open Telegram, search for @BotFather, and start a chat.
  2. Send /newbot.
  3. Pick a display name: Acme Monitoring. This is the name your messages appear under.
  4. Pick a username ending in bot: acme_monitoring_bot. The username must be unique across Telegram.
  5. BotFather replies with a token like 123456789:AAFq3ZNn-fakebut-like-this-shape. Save this, it's your bot token.

The bot token is a credential. Anyone with it can send messages as your bot, so treat it like a password.

Step 2. Get a chat ID

For direct messages to yourself:

  1. Open a chat with @userinfobot.
  2. Send any message; it replies with your numeric user ID. That's your chat ID.

For a group chat:

  1. Add your bot to the group.
  2. Send /start in the group, or any message tagging the bot.
  3. Open https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates in a browser.
  4. Look for "chat": {"id": -1001234567890, ...}. The negative number is the group's chat ID.

Step 3. Configure in UptimeWarden

Telegram is added as a webhook. Open the Notifications page in the sidebar, click Add webhook in the Webhook endpoints tab, and pick Telegram as the Provider:

  1. Endpoint URL: https://api.telegram.org/bot<BOT_TOKEN>/sendMessage. Replace <BOT_TOKEN> with the token from BotFather.
  2. Telegram Chat ID: enter the chat ID from Step 2.
  3. Format: if you pick HTML the message is sent as HTML; any other choice uses Markdown. Markdown is the most forgiving with monitor names.
  4. In the Targeting step choose the alert types, in the Review step tick the monitors the webhook should be attached to, and save.

The webhook only sends alerts from the monitors it is attached to. Make sure you've sent at least one message to the bot first; Telegram blocks bots from messaging users who haven't initiated the conversation.

The Test Webhook button does not send a message to Telegram: the test request carries no chat_id and text. Verify the setup on the first real alert from an attached monitor. See Webhook Configuration.

Your bot token

The bot token is a credential; anyone who has it can send messages with your bot. Create a dedicated bot for UptimeWarden and do not enter the token of a bot you use elsewhere. Do not paste the token into a comment field, a log line or an audit record.

Message preview

Default message format for a down alert:

🔴 *Payment API is DOWN*

URL: https://api.example.com
Error: HTTP 503
Time: 2026-04-27T03:12:00Z

An outage message opens with a line that summarizes the evidence for the incident. You can customize the message with a template from the webhook's Manage Templates dialog; see Webhook Configuration for the variables. Telegram supports the same flat placeholders such as {monitor_name}, {monitor_url}, {error_message}, {response_time}, and {ssl_expiry_days}. Both {single} and {{double}} brace styles work.

Multiple chats

Each Telegram webhook carries a single chat ID. To target several chats, create a separate Telegram webhook for each chat and attach them to monitors. This is useful for:

  • Production monitors → attach the webhook for the #prod-alerts group.
  • Development monitors → attach the webhook for your personal DM.
  • Customer-facing monitors → attach the webhook for a group shared with the customer, using a different bot.

The monitor form has no separate Telegram chat ID field.

Group chat etiquette

Telegram bots can post in group chats but cannot read messages by default. Privacy Mode is on. To turn it off (so your bot can respond to slash commands like /status inside the group):

  1. Open BotFather and send /setprivacy.
  2. Pick your bot and choose Disable.

UptimeWarden's bot only sends messages, so leave Privacy Mode on for security. Disable it only if you're building custom inbound handling.

Rate limits

Telegram enforces these limits:

  • 30 messages per second per bot across different chats.
  • 1 message per second per chat or group.

UptimeWarden does not check these limits separately. During a multi-monitor outage, Smart Alert Grouping sends the first alert immediately and the rest of the storm as one message per minute instead of one message per monitor. Monitors with an escalation policy and accounts that turn grouping off send a separate message for each alert.

Troubleshooting

SymptomFix
Forbidden: bot was blocked by the userOpen the bot chat and send any message to unblock it
Bad Request: chat not foundDouble-check the chat ID, normal groups start with - and supergroups start with -100
Markdown formatting brokenSpecial characters such as *, _, [ can break Markdown; set the webhook's Format to HTML
Real alerts don't arriveThe webhook isn't attached to the monitor, or the alert types in the Targeting step don't cover that alert; check the webhook and its attached monitors

Bu sayfayı Türkçe okuyun