> For the complete documentation index, see [llms.txt](https://docs.b2core.b2broker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2core.b2broker.com/how-to-articles/manage-communication-platforms/how-to-set-up-a-telegram-bot.md).

# How to set up a Telegram bot

To be able to send [event notifications](/back-office-guide/system/event-notifications.md) in Telegram chats, groups and channels, create a Telegram bot and obtain a token for its managing.

{% hint style="info" %}
This instruction is created based on the latest version of Telegram as of this writing. Due to possible changes to the procedures described here, we suggest that you consult the official [Telegram documentation](https://core.telegram.org/bots) or contact their support in case you have any questions.
{% endhint %}

To create a Telegram bot:

{% stepper %}
{% step %}
In Telegram, send the `/newbot` command to [@BotFather](https://t.me/botfather).
{% endstep %}

{% step %}
Follow the instructions and specify the following information:

* Enter a name for your Telegram bot.
* Enter a username for your bot. It must end with “bot” (such as `NotificationsBot` or `notifications_bot`).
  {% endstep %}

{% step %}
Copy the displayed token that is required to authorize your bot and send requests to the Bot API.
{% endstep %}

{% step %}
In the B2CORE Back Office, navigate to **Systems** > **Settings**.
{% endstep %}

{% step %}
Paste the copied token into the **Bot API Token** field displayed under the **Telegram Bot** section.
{% endstep %}

{% step %}
Click **Save** to apply the changes.
{% endstep %}
{% endstepper %}

{% hint style="success" %}
**See also**

[How to set up event notifications](/how-to-articles/manage-system-settings/how-to-set-up-event-notifications.md)
{% endhint %}


---

# 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://docs.b2core.b2broker.com/how-to-articles/manage-communication-platforms/how-to-set-up-a-telegram-bot.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.
