> For the complete documentation index, see [llms.txt](https://archai.gitbook.io/archai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://archai.gitbook.io/archai/create-your-own-ai/telegram-integration.md).

# Telegram integration

Enjoy your AI agent in telegram. Once you create it, you may talk to it privately, or add it to groups and channels. Don't forget to grant admin rights to your bot to respond in groups.

#### Step 1. Create a bot in Telegram

Go to [@Botfather](https://t.me/BotFather) in telegram and click the “Start” button or type `/start` in the chat.

Type `/newbot` to start the bot creation process and let BotFather guide you step-by-step:

* Provide a name for your bot. This is how users will see it.
* Provide a unique username for your bot. It must end with “bot” (e.g., arch\_ai\_bot)
* Once everything is set up, BotFather will generate an API token for your bot. This token is essential for connecting your bot to the Telegram API.

<figure><img src="https://2869029725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8K4BJjgJ8MDGXT4IBnR%2Fuploads%2F8LTPA8zRlTeRs8jkFdIE%2FScreenshot%202024-12-13%20at%2000.40.28.png?alt=media&amp;token=35d67d8b-8028-4da1-b337-b60edda82f50" alt="" width="563"><figcaption></figcaption></figure>

#### Step 2. Submit token

When you have the bot token, navigate to Telegram bot in Intregrations tab.

<figure><img src="https://2869029725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8K4BJjgJ8MDGXT4IBnR%2Fuploads%2F0XNCDOJzAp7Kea9WHdFi%2FScreenshot%202025-02-01%20at%2000.08.53.png?alt=media&amp;token=b43f7c33-135f-47cd-8e87-792f157e9003" alt="" width="563"><figcaption></figcaption></figure>

Submit the bot token in the field, and you'll see the integration as active.

<div><figure><img src="https://2869029725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8K4BJjgJ8MDGXT4IBnR%2Fuploads%2FKV9Q3XiGmkL37FQyvkjL%2FScreenshot%202025-02-01%20at%2000.18.08.png?alt=media&amp;token=b425515b-e1a9-4d07-acd2-61dc2f215b22" alt=""><figcaption></figcaption></figure> <figure><img src="https://2869029725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8K4BJjgJ8MDGXT4IBnR%2Fuploads%2FlXCDgGKjNbX5fk9kCHS8%2FScreenshot%202025-02-01%20at%2000.19.01.png?alt=media&amp;token=6075c24d-bff3-4609-a2a4-49a0e7302f27" alt=""><figcaption></figcaption></figure></div>

#### Step 3. Give it a ride

Now you can continue the chat with the bot in Telegram privately, or add it to groups. Yes, it's that simple!&#x20;

<figure><img src="https://2869029725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ8K4BJjgJ8MDGXT4IBnR%2Fuploads%2F4cg75qpVMDV0UbCxj1A6%2FScreenshot%202024-12-13%20at%2000.46.16.png?alt=media&amp;token=b49592b5-2e9e-4f91-b57e-9de1598bcf0a" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
Telegram has a tech limitation, which prevents bots from seeing other bots' messages. Thus, you cannot make two agents talk to each other in the telegram chat. Use thearch.ai for it 😉
{% endhint %}
