> For the complete documentation index, see [llms.txt](https://docs.tgshop.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tgshop.io/zapusk-magazina-v-telegram/kak-sozdat-bota.md).

# Как создать бота?

Перейдите в чат с ботом [@BotFather](https://t.me/BotFather) в Telegram

<figure><img src="/files/JFcDHhBZ6E9uYrU6FDPX" alt=""><figcaption><p>Открытие диалога с BotFather</p></figcaption></figure>

Отправьте команду /newbot , чтобы создать нового бота

<figure><img src="/files/Z9Ylk79pbiZx7AWIMTNm" alt=""><figcaption><p>Нажмите команду /newbot для создания нового бота </p></figcaption></figure>

Укажите name (название) для бота. Сюда вы можете написать название вашего магазина или бренда. Название может быть на любом языке (русский, английский или любой другой)&#x20;

<figure><img src="/files/6KSskcDWRd7xILtWZevJ" alt=""><figcaption><p>Настройка названия бота </p></figcaption></figure>

Укажите username (ник) бота. Ник бота должен быть задан только на английском языке в формате botusernamebot или botusername\_bot. Где botusername - ник вашего бота на английском языке, а "bot" / "*bot" - обязательная приставка к никнейму бота, которая должна быть в конце бота. Приставка "bot" может быть написана слитно с ником бота или через нижнее подчеркивание "\_".*&#x20;

{% hint style="info" %}
**Важно: username (ник) бота нельзя изменить после создания бота**
{% endhint %}

<figure><img src="/files/dbhCaXxGfSPP9lEsKpXy" alt=""><figcaption><p>Настройка никнейма бота </p></figcaption></figure>

В ответ @BotFather пришлет токен вашего бота в формате: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

Скопируйте токен и укажите его в ЛК TGShop в поле Telegram-токен бота

<figure><img src="/files/1UZTLeYrRiYCcaYu2dr4" alt=""><figcaption><p>Подключение бота к магазину</p></figcaption></figure>


---

# 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.tgshop.io/zapusk-magazina-v-telegram/kak-sozdat-bota.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.
