> For the complete documentation index, see [llms.txt](https://wiki.ktshop.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.ktshop.io/nastroiki-botov/sozdanie-bota.md).

# Создание бота

Откройте [мессенджер Telegram](https://telegram.org/apps), войдите в вашу учетную запись или создайте новую.\
**Шаг 1.** Введите в поле поиска *@BotFather* и выберите бота.

*У официального бота Telegram будет стоять синий подтверждающий знак возле имени в виде галочки.*

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

**Шаг 2.** Нажмите «Запустить» для активации бота BotFather.

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

В ответ вы получите список команд по управлению ботов.

**Шаг 3.** Выберите или напечатайте и отправьте команду `/newbot`.

<figure><img src="/files/7ZTrQKAutdZxIefjyL78" alt=""><figcaption></figcaption></figure>

**Шаг 4.** Дайте имя боту — клиенты увидят это имя при общении с ботом. И никнейм бота — по нему можно будет найти бота в Telegram. Никнейм должен быть уникальным, не повторять существующие в базе и заканчиваться на слово «bot».

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

После того как вы выберите подходящее имя бот будет создан. Вы получите сообщение со ссылкой на бота `t.me/<никнейм_бота>`, рекомендации по настройке аватарки, описание бота и список команд для настройки бота.

Для подключения бота на сайт вам понадобится токен. Скопируйте значение токена и перейдите к настройкам необходимого бота.


---

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

```
GET https://wiki.ktshop.io/nastroiki-botov/sozdanie-bota.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.
