> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/conversations/connect-telegram.md).

# Integrate with Platform: Telegram

## <mark style="color:blue;">Pre-Connection Checklist</mark>

* An "AI Assistant" has been created on the [MaiAgent platform](https://admin.maiagent.ai/)
* A Telegram account has been registered

## <mark style="color:blue;">Start Connection</mark>

### 1. Go to the left menu "Chat Platforms" and click the <mark style="color:blue;">"+ Connect Chat Platform"</mark> button in the upper right corner

<figure><img src="/files/XfRKwpmjQRj6FbIJmMkw" alt=""><figcaption></figcaption></figure>

### 2. Select Telegram as the chat platform

<figure><img src="/files/v9iew1iPeXenxT5grGH2" alt=""><figcaption></figcaption></figure>

### 3. Enter the chat platform name and select the AI Assistant

<figure><img src="/files/ub8Su7CrLOCPi3B8SXJO" alt=""><figcaption></figcaption></figure>

### 4. Obtain the Bot Token from BotFather <https://t.me/BotFather>

#### a. Click the "BotFather" link: [https://t.me/BotFather](#a.-dian-xuan-botfather-lian-jie)

<figure><img src="/files/vQvZPrMgq8pSZ7bgwhrz" alt=""><figcaption></figcaption></figure>

#### b. Enter the Telegram BotFather channel

<figure><img src="/files/Ivbc3n68ksgaZvl14KMC" alt=""><figcaption></figcaption></figure>

#### c. Click "OPEN IN WEB" (if using the web version)

#### After clicking, BotFather will ask you to click start to begin the conversation:

<figure><img src="/files/hEu8kUS1DCrOBEulND9r" alt=""><figcaption></figcaption></figure>

#### d. Click "<mark style="color:blue;">/newbot</mark>", follow the instructions to enter the Bot name and username, and you will receive the Bot Token

<figure><img src="/files/ffQDKbX9NPjozrPD4qy4" alt=""><figcaption></figcaption></figure>

### 5. Return to the MaiAgent chat platform connection editing page and paste the Bot Token you just obtained

After pasting the Bot Token, click the "<mark style="color:blue;">Save</mark>" button in the lower right corner to complete the connection setup

<figure><img src="/files/tMGBnSKXFsFXS9akfhTb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9js6UJzW57E7YAcErmWh" alt=""><figcaption></figcaption></figure>

### 6. **Verify the connection**

You can start a conversation with the Telegram Bot you just configured

<figure><img src="/files/qE6ylrU6HpzbWscHhXoC" alt=""><figcaption></figcaption></figure>

If the conversation can be viewed in MaiAgent's All Conversations, the connection is successful!

<figure><img src="/files/q8wmr3u4zF8pAV9REXym" alt=""><figcaption></figcaption></figure>


---

# 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://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/conversations/connect-telegram.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.
