# Telegram

> Connect a Telegram bot.

1. Paste the BotFather token under Integrations. It is validated with `getMe`, stored encrypted and never returned.
2. Updates arrive at `POST /api/public/telegram/:connectionId`, authenticated by `X-Telegram-Bot-Api-Secret-Token`.
3. Attach an agent from Agent → Channels → Telegram.

:::note
Registering the webhook needs `PUBLIC_BASE_URL` to be an https URL reachable by Telegram. Only new text messages are accepted; in groups the bot must be @mentioned or replied to.
:::
