> For the complete documentation index, see [llms.txt](https://docs.iexexchanger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iexexchanger.com/telegram-app/ustanovka-i-nastroika/ustanovka-prilozheniya/shag-3-podklyuchenie-telegram-bot.md).

# Шаг 3: Подключение Telegram Bot

## Шаг 1: Создание Telegram-бота

1. Откройте Telegram и найдите в поиске официального бота **@BotFather**.<br>

   <figure><img src="/files/KCAgjXaYLNt8zcjPCtqr" alt="" width="563"><figcaption></figcaption></figure>
2. Начните диалог с ним, отправив команду `/start`.
3. Далее отправьте команду `/newbot`.
4. Бот попросит вас придумать название для нового бота (например, «MyExchangeBot»).<br>

   <figure><img src="/files/UjAC6fENwHyNEIOiPNth" alt=""><figcaption></figcaption></figure>
5. Затем придумайте уникальное имя пользователя (username) бота, оно обязательно должно заканчиваться на слово **«bot»** (например, «myexchange\_bot»).<br>

   <figure><img src="/files/Czp5TNJHtcomXnn4q8wm" alt="" width="563"><figcaption></figcaption></figure>
6. После этого BotFather отправит вам специальный токен — **сохраните его**, он потребуется для настройки вашего приложения.

***

## Шаг 2: Привязка Mini App к Telegram-боту

1. В диалоге с @BotFather отправьте команду `/mybots`.
2. Выберите вашего нового бота.
3. Нажмите кнопку **«Bot Settings»**.
4. Выберите пункт **«Configure Mini App»**.
5. Затем нажмите **«Enable Mini App»**.
6. BotFather попросит вас отправить ссылку (URL) вашего Mini App. Укажите адрес вашего Telegram Mini App, например:

```
https://tg.ваш_домен
```

После этого ваш Telegram Mini App будет успешно привязан к созданному ранее боту.


---

# 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.iexexchanger.com/telegram-app/ustanovka-i-nastroika/ustanovka-prilozheniya/shag-3-podklyuchenie-telegram-bot.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.
