> ## Documentation Index
> Fetch the complete documentation index at: https://customergpt.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Telegram

> Run your CustomerGPT chatbot as a Telegram bot that answers from your knowledge base.

Telegram is set up on the **Integrations** page, available on the Growth plan and above.

## 1. Create a bot in Telegram

1. In Telegram, open [@BotFather](https://t.me/BotFather).
2. Send `/newbot`, then choose a display name and a username ending in `bot`.
3. BotFather replies with an **API token**, such as `1234567890:AA...`. Copy it and keep it secret: anyone with it controls your bot.

## 2. Connect it to CustomerGPT

1. In CustomerGPT, select your chatbot, open **Integrations**, and click **🔌 Configure** on **Telegram Bot**.
2. Paste the token into **Telegram HTTP API Bot Token**.
3. Click **Save Settings**.

CustomerGPT registers its webhook with Telegram for you, so there's nothing else to set up.

## Test it

Open your bot in Telegram, for example `t.me/YourBot`, press **Start**, and ask a question.

## How it works

* **One conversation per chat.** Each Telegram chat becomes a conversation in **Chat History**, tagged `telegram`. Every answer counts toward your monthly messages.
* **Text only.** The chatbot answers text messages. Photos, voice messages and files are ignored.
* **Groups.** You can add the bot to a group. By default, Telegram only passes a bot the messages that mention it or reply to it, so members ask with `@YourBot`.
* **Sales Automation applies.** If it's on, the chatbot qualifies and collects contact details in Telegram too.
* **You can reply yourself.** Click **Take Over Chat** on the conversation in **Chat History** to pause the chatbot in that chat. Your bot sends **🎧 A team member has joined and will reply here.**, then each reply you send. Click **Release Chat to AI** to hand the chat back. See [Take over a conversation](https://customergpt.ai/docs/conversations/take-over-a-conversation.md).

## If the bot stops answering

CustomerGPT checks that every update really comes from Telegram, using a secret it registers with Telegram when you save your token. Bots connected before October 13, 2026 don't have that secret yet, so they stopped answering. Click **⚙️ Settings** on the **Telegram Bot** card and **Save Settings** again: the secret is registered, and the bot answers again.

## Pause or disconnect

Click **Pause Bot** on the **Telegram Bot** card to stop answering, and **Activate Bot** to resume. To retire the bot for good, send `/deletebot` to @BotFather.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.