---
agent:
  instructions: "Search Greenbar's public pages and docs by keyword. A result has every word you give. Results are returned in Markdown."
  endpoint: "https://usegreenbar.com/.well-known/search?q={query}"
  method: "GET"
---

# Telegram alerts

> Send alerts to a Telegram chat with a bot.

## Add a Telegram channel

*Available on Paid plans*

Telegram sends the alert through a bot you create. Create the bot with @BotFather, add the bot to the group or channel, and paste the bot token and the chat id. After saving, only the end of the token is shown. Messages go only to api.telegram.org.

1. Create a bot with @BotFather and add it to the group or channel.
2. Open Alerts. Under Add channel, set Type to Telegram.
3. Paste the token into Bot token and the chat into Chat id.
4. Choose Add channel.

![The Add channel form with Type set to Telegram, Bot token filled with a demo token, and Chat id set to @status_alerts. The SMS (Coming soon) question is under Type, and Add channel is at the bottom.](https://usegreenbar.com/docs/screenshots/alerts-add-telegram-light.png?v=ffde62632b11)

*A Telegram bot token and chat id. Only the end of the token is shown after you save.*

Chat id is a number, including a group id that starts with a minus, or a public channel name such as @status_alerts. The form only checks that both fields are filled in. The server checks the shape, and the messages below are what it returns. Send test is described on How alerts work.

### When it fails

**What you see if a Telegram channel cannot be added**

| What you see | Why | What to change |
| --- | --- | --- |
| `Enter the bot token` | Bot token was empty when it was submitted. | Paste the token from @BotFather. |
| `Enter the chat id` | Chat id was empty when it was submitted. | Enter the chat id or the channel name. |
| `Enter the bot token from @BotFather, like 123456789:AAE…` | The token is not in the shape BotFather gives you. | Paste the token again. |
| `Enter a chat id (a number such as -1001234567890) or a channel name such as @status_alerts` | Chat id is neither a number nor a channel name of that shape. | Use the group's numeric id, or a public channel name. |
