Telegram Integration

Some of our products integrate with the Telegram app to send and receive messages or notifications. To set up this integration, please follow the instructions below.

Table of contents :

Inputs Required in Expert Advisors:

When configuring your EA, you need to provide two inputs in the settings panel:

  • Telegram Bot Token
  • Telegram User/Channel ID
ea settings to activate telegram integration

Follow the steps below to obtain and enter these values.

Settings in MetaTrader Terminal:

To allow communication with Telegram, you must enable the WebRequest option in MetaTrader:

  1. Go to Tools → Options → Expert Advisors.
  2. Enable Allow WebRequest for listed URL.
  3. Add the following URL to the list: https://api.telegram.org
telegram integration webrequest settings on metatrader

Understanding the Telegram Bot Token:

A Bot Token is required to connect your EA with Telegram. To create one:

In your Telegram app, search for BotFather and open the chat.

telegram integration search botfather

Type /newbot and press Enter.

telegram integration botfather create a new bot

Enter a name for your bot.

telegram integration botfather set a bot name

Provide a unique username ending with “bot”.

telegram integration botfather set a bot user name

BotFather will generate your bot and provide an HTTP API Token.

telegram integration botfather get the bot API Token

Copy this token and paste it into the Telegram Bot Token field in your EA inputs.

Setting Up User ID for Personal Notifications:

To send notifications directly to your Telegram account:

In Telegram, search for userinfobot and open the chat.

telegram integration search userinfobot

Click Start.

Your Telegram User ID will be displayed. Copy this code and paste it into the Telegram User/Channel ID field.

telegram integration userinfobot get current user id

To enable notifications, start a chat with your created bot:

  1. Search for your bot’s username in Telegram.
  2. Open the chat and click Start.
telegram integration search your created bot

Keep this chat active. If you delete it, repeat the steps above to re‑enable notifications.

Setting Up Channel ID for Public Channel Notifications

If you want to send notifications to a public Telegram channel:

  1. Add your bot as an administrator of the channel.
  2. Enter the channel ID into the Telegram User/Channel ID field.
    • Channel IDs begin with the @ symbol.
    • Example: @MyNotificationChannel