> For the complete documentation index, see [llms.txt](https://wiki.hermesbot.club/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.hermesbot.club/podgotovka-k-rabote/sozdanie-bota-v-telegram.md).

# Создание бота в телеграм

Для бота телеграм вам потребуется telegram аккаунт. Не рекомендуем создавать телеграм аккаунт через виртуальный номер (sms-activator), так как они часто слетают, боты блокируется. Лучший способ купить анонимный номер телеграм на [fragment.com](https://fragment.com/) , такие телеграм аккаунты не отлетают, боты банятся очень редко, но учтите, что цена на данный номер 400$+. Есть возможность купить аккаунт с tdata и создавать через них, но также высокая вероятность быстрых блокировок

Для создания бота откройте telegram, введите в чате @BotFather и откройте официального бота ТГ:

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

Вводим команду создания бота:\
`/newbot`&#x20;

Вводим название бота\
`Магазин 1`

\
Вводим логин бота, обязательно с концом bot\
`magazin1_bot`

Если такой логин доступен, вам выдастся сообщение с токеном\
Формат токена: 2135771113:AAFjHjG0prT7Mo4\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Именно этот ключ вам нужно вставить в админке в разделе "Настройки ботов" - "Боты", нужно нажать "Создать нового" и вписать полученный api ключ.

Поставить картинку, изменить название бота и прочие функции настраиваются в том же @botfather&#x20;

Вот полезные команды для настройки ботов:\
/setname - Установить имя бота\
/setdescription - Изменение описания бота\
/setabouttext - Изменение описание профиля бота\
/setuserpic - Изменение фотографии бота\
/deletebot - Удалить бота


---

# 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.hermesbot.club/podgotovka-k-rabote/sozdanie-bota-v-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.
