# Telegram

Send alerts and monitor notifications to a Telegram chat, group or channel through a bot.

## Set it up

1. In Telegram, talk to [@BotFather](https://t.me/BotFather), send `/newbot` and keep the token it gives you.
2. Add the bot to the chat or group (for a channel, make it an administrator) and send a message in it.
3. Find the chat id: open `https://api.telegram.org/bot<token>/getUpdates` and look for `chat.id`. Groups and channels have negative ids such as `-1001234567890`. A public channel can also be written as `@channelname`.
4. In Tailcove, open an alert or a monitor, switch on **Telegram** and enter the chat id and the bot token.

The token is stored encrypted and never shown again; leave the field blank when you edit to keep it. Tailcove always sends to Telegram's own API host, and the token only appears in the request to it.

## What you get

A plain text message: the title (`Alert triggered: High errors`), the source and the details. Messages are plain text on purpose, so nothing in a name can be read as formatting or a mention. A resolved alert sends a second message.
