> 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

#### 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="/files/lVsyXmb8Qkc1bL8mad0L" 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="/files/ao9Bf4mfh2Llp3BDMOR0" 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="/files/SRAsOGx0LWZaF5JJBbmG" alt=""><figcaption></figcaption></figure> <figure><img src="/files/AGxpociy2icRczPbQ7Ri" 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="/files/IVibowRechRbFoCKgBJi" 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://archai.gitbook.io/archai/create-your-own-ai/telegram-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
