# Telegram alerts

Setting up Telegram alerts requires a few steps:

### **1. Creating a bot in** [**@BotFather**](https://t.me/BotFather) **for sending notifications from the Tiger.com terminal**

1\. In the search bar of the dialog screen in the Telegram messenger, you need to enter the name of the bot generator: [**@BotFather**](https://t.me/BotFather).

2\. In the dialog screen that opens, go to the Menu → /newbot to create a new bot.<br>

<figure><img src="https://s3-eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/80172660814/original/cLfRvyihuwicnNmjqVpv03prIKIzNGaphg.png?1672390847" alt=""><figcaption></figcaption></figure>

3\. [@BotFather](https://t.me/BotFather) will request the name of your new bot for notifications. Once you have entered the name into the text field, you need to send the message.<br>

<figure><img src="https://s3-eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/80172660809/original/jhvulimtWbVg64l53cvsJfpqCLFWTCJyDA.png?1672390847" alt=""><figcaption></figcaption></figure>

4\. Next, enter a username for the bot, which must end with **\_bot**. The name must be unique.<br>

<figure><img src="https://s3-eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/80172660808/original/T3yJrgH_FV5RmRtumim2e0D3Brgf3drj3Q.png?1672390847" alt=""><figcaption></figcaption></figure>

5\. If you have completed all of these steps correctly, BotFather will generate a **token** in the following format: **number:code**. This will be provided in the second paragraph of the message from the bot and will be highlighted in a dark blue color. You need to save this value.

<figure><img src="https://s3-eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/80172660810/original/RmmcTRpiBcvrVvBlITGcvt-wVg7KOsejSQ.png?1672390847" alt=""><figcaption></figcaption></figure>

6. Follow the link from [@BotFather](https://t.me/BotFather), which leads to the created bot and click on the "Start" button to activate it:<br>

   <figure><img src="/files/Cka3h39vwwRj6vbIKIub" alt=""><figcaption><p>Link to the created bot</p></figcaption></figure>

### **2. Obtaining a Telegram ID**

{% hint style="info" %}
Messages from the Tiger.com terminal can be sent to the TG bot and to the channel (TG group), depending on your choice.

In order to receive notifications to the **TG bot** created in the first step, you need to get a **User ID** (step 2.1 of this instruction), then go to step 3. Step 2.2 should be ignored in that case.

In order to receive notifications to the **TG channel (group)**, you have to get the **Channel ID** (step 2.2), then go to step 3. Ignore step 2.1.
{% endhint %}

#### **2.1 Obtaining user ID in** [**@userinfobot**](https://t.me/userinfobot)

1. You need to open the Telegram messenger and enter the name of the information bot in the search bar: [**@userinfobot**](https://t.me/userinfobot).
2. In the dialog screen that opens, enter **/start** or press the Start button (or the Restart button if you’ve used the bot before).<br>

You will receive a message in response containing information about your account:<br>

> @unklfrank                                           // User nickname

> ID: **520741679**                                      // User ID

> First: Frank                                            // First name on Telegram

> Last: Mohn                                            // Last name on Telegram

> Lang: Eng                                              // Selected interface language

You need to save the numerical value of the **user ID** from the response that you receive.

#### **2.2 Obtaining a Channel ID**

1. First, add the Telegram bot to the list of administrators for your channel and activate "Post messages" permission for it
2. Forward any message from your channel to[ @userinfobot](https://t.me/userinfobot)
3. You will get a response, containing a negative channel ID, for example:\
   `@channel_name` \
   `Id:`` `<mark style="color:orange;">`-1001879704261`</mark> \
   `Title: Channel name`\
   `https://t.me/channel_name/6`
4. Copy the negative channel ID (it is highlighted in orange in the example above) from the response you get from the bot, including the minus sign. This ID uniquely identifies your channel. Make sure to save it for the subsequent configuration steps.

### **3. Setting up Telegram alerts within Tiger.com terminal**

1\. Open the terminal and go to the bot settings menu: Settings → Telegram alerts.

<figure><img src="https://s3-eu-central-1.amazonaws.com/euc-cdn.freshdesk.com/data/helpdesk/attachments/production/80173777240/original/DhqFmBkJn0fX01kEHHSLokZr15y2d6mokg.png?1672834782" alt=""><figcaption></figcaption></figure>

2\. You’ll need to enter the relevant authorization data and set up the bot:

* Activate the “Enable” toggle.<br>
* In the bot’s “Bot token” field, enter the token that you got from [**@BotFather**](https://t.me/BotFather).
* In the "Telegram ID" field, enter your User ID received from @userinfobot in step 2.1 (if you want to receive notifications in the TG bot), or the Channel ID received in step 2.2 (if you want to receive notifications in the TG channel (group)).
* You can set up a proxy if necessary (in the case of a Telegram API that is inaccessible due to your geolocation).
* Press OK.<br>

  <figure><img src="/files/gbB4GgdfBbGzxkU7T58d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you want to receive information on orders and executions, please, toggle on the corresponding options in Telegram alerts settings section
{% endhint %}


---

# 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://support.tiger.com/english/settings/terminal/telegram-alerts.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.
