# How to set up a Telegram bot

To be able to send [event notifications](https://docs.b2core.b2broker.com/back-office-guide/system/event-notifications) 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](https://docs.b2core.b2broker.com/how-to-articles/manage-system-settings/how-to-set-up-event-notifications)
{% endhint %}
