# Integrate Chat Platform: Telegram

## <mark style="color:blue;">Pre-integration 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 Integration</mark>

### 1. Go to "Conversation Platform" in the left menu, click the <mark style="color:blue;">"+ Integrate Conversation Platform"</mark> button in the upper right corner

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

### 2. Select Telegram as the conversation platform

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

### 3. Fill in the conversation platform name and select an AI Assistant

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

### 4. Obtain 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 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 obtain the Bot Token

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

### 5. Return to the MaiAgent conversation platform integration interface 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 integration setup

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

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

### 6. **Confirm successful integration**

You can test by having a conversation with the newly configured Telegram Bot

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

If the related conversation can be viewed in all conversations on MaiAgent, the integration is successful!

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


---

# Agent Instructions: 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:

```
GET https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/release/chuan-jie-dui-hua-ping-tai-telegram.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
