# Подключение Telegram

{% hint style="info" %}
Важно: в телеграме Smartbot обязательно привязывается к телеграм-боту, через которого отвечает и действует. Как создать такого бота - описано чуть ниже
{% endhint %}

Заходим в раздел "**Каналы**"

<figure><img src="/files/6wR2RjBFNDUcX0LEjiJv" alt=""><figcaption></figcaption></figure>

И в меню "**Создать канал для**" выбираем иконку телеграма:

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

Вы можете использовать токен уже созданного ранее бота или создать нового с помощью [BotFather](https://t.me/BotFather)[.](https://t.me/BotFather)

Перейдите в botfather и создайте бота, следуя инструкции в telegram:

![](/files/VVHwDxpLBfEvJfIOKw5k)

В интерфейсе добавления канала вставьте скопированный токен и нажмите "**Создать**"

<figure><img src="/files/2ArwXI8IvuWJtQlKZdIT" alt=""><figcaption></figcaption></figure>

Вы можете сразу открыть параметры телеграм-бота и подключить к нему нужные сценарии, отметив их галочками в поле "Сценарии"

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

{% hint style="success" %}
Готово! Телеграм-бот успешно добавлен в ваш проект. &#x20;
{% endhint %}


---

# 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.smartbotpro.ru/nachalo-raboty/kak-podklyuchit-messendzher/podklyuchenie-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.
