# Telegram Integration

It is possible to have Telegram messages received by the BotManager. To do this, you have to establish a communication with the BotManager Telegram Bot and tell BotManager your Telegram User ID.

{% hint style="info" %}
This feature is currently only used by the Automation and Margin Watch Add-Ons. Both Add-Ons can send automatic status notifications. See [here](https://docs.botmanager.io/add-ons/margin-watch#status-notifications) for Margin Watch and [here](https://docs.botmanager.io/add-ons/automation#status-notifications) for Automation.
{% endhint %}

## Step by Step Guide

### Prerequisites

* Of course a Telegram account :smile:

### Step 1 - Establish communication on Telegram <a href="#step-1-setting-up-your-discord-webhook" id="step-1-setting-up-your-discord-webhook"></a>

You need to first send a message to the BotManager Bot on Telegram before the Bot can send messages to you. Contact the Bot by click this link: <https://t.me/TheRealBotManager_bot> and type "/start"

### Step 2 - Finding out your Telegram Telegram User ID <a href="#step-1-setting-up-your-discord-webhook" id="step-1-setting-up-your-discord-webhook"></a>

Contact the userinfobot at <https://telegram.me/userinfobot> and type "/start"

You should then see your Telegram ID.

![](https://2840206233-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MieWdIBRoT06HGdZDGB%2Fuploads%2F5VH32L8ZbT4p6kJzN7ao%2Fimage.png?alt=media\&token=3f294557-905b-4054-959a-545a558d4d22)

### Step 3 - Let BotManager know your Telegram User ID <a href="#step-1-setting-up-your-discord-webhook" id="step-1-setting-up-your-discord-webhook"></a>

Click on the Button **Discord & Telegram Integration**

![](https://2840206233-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MieWdIBRoT06HGdZDGB%2Fuploads%2FUXhnOF5d1DNaUeoAG2G6%2Fimage.png?alt=media\&token=6380ceb9-f96d-4d2b-bea2-d9808eb4155b)

Paste your Telegram User ID in that field and click **Send Test Message** to receive a Test Message from the BotManager Bot on Telegram.

![](https://2840206233-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MieWdIBRoT06HGdZDGB%2Fuploads%2FG9JfYlYjaDFQo0sYOA7N%2Fimage.png?alt=media\&token=d7cdfef1-6d73-4720-b17f-72f7dcc28e8f)

Click on **Apply**. The BotManager Bot will now send Notifications to you via Telegram.

### Step 4 - Turn on Notifications

See [here](https://docs.botmanager.io/add-ons/margin-watch#status-notifications) for Margin Watch and [here](https://docs.botmanager.io/add-ons/automation#status-notifications) for Automation.


---

# Agent Instructions: 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.botmanager.io/telegram-integration.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.
