> 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="https://149468416-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLo474ql7jgpwSAeS8WAS%2Fuploads%2FqKygF7Aj9abHFDcoNVbQ%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-04-26%20%D0%B2%2021.21.29.png?alt=media&amp;token=5328a282-0f05-4c9e-b11a-5b9a15b5277a" alt=""><figcaption><p>Открытие диалога с BotFather</p></figcaption></figure>

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

<figure><img src="https://149468416-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLo474ql7jgpwSAeS8WAS%2Fuploads%2Fr4mwktHDV5LIHOFteCoM%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-04-26%20%D0%B2%2021.22.52.png?alt=media&amp;token=8c53ece7-d414-4eaa-a0eb-2cafdf86a901" alt=""><figcaption><p>Нажмите команду /newbot для создания нового бота </p></figcaption></figure>

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

<figure><img src="broken://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="https://149468416-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLo474ql7jgpwSAeS8WAS%2Fuploads%2FOwpnbYvFI2UzRgMmMQBF%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-04-26%20%D0%B2%2021.56.16.png?alt=media&amp;token=4b3d3c82-b386-4460-9b50-8c6c66880a7a" alt=""><figcaption><p>Настройка никнейма бота </p></figcaption></figure>

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

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

<figure><img src="https://149468416-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLo474ql7jgpwSAeS8WAS%2Fuploads%2Ffw1UmQ3IyJpxaetm6Nbq%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-04-26%20%D0%B2%2021.11.20.png?alt=media&amp;token=22226666-9999-4f5d-8032-d7016af5bd49" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tgshop.io/zapusk-magazina-v-telegram/kak-sozdat-bota.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
