Telegram Integration

18 February 2026, 09:10
Indra Maulana
0
24

Telegram Integration


Stay connected to your trading terminal wherever you are. AstroTrade uses the Telegram Bot API to send real-time alerts for executions, margin warnings, and daily summaries directly to your phone.



Step 1: Create Your Bot via @BotFather


The first step is to create a unique bot on Telegram to handle the transmissions
  1. Open Telegram and search for @BotFather. This is the official bot for creating other bots.
  2. Start a chat with BotFather and send the command: 
     /newbot
  3. Follow the prompts: Give your bot a Name (e.g., MyAstroTradeBot) and a Username (must end in "bot", e.g., trader_astro_x_bot).
  4. BotFather will provide you with an API Token. It looks like this:
    123456789:ABCDefGhIJKlmNoPQRstuVWXyz
    Copy this token; you will paste it into the AstroTrade settings.




Step 2: Get Your Chat ID

AstroTrade needs to know where to send the messages. This is your numeric Chat ID.


Search for @userinfobot on Telegram and start it. It will immediately reply with your unique ID number.



Step 3: Configuration in MT5


Open the Telegram Panel in AstroTrade and enter your retrieved data:

  • Bot Token: Paste the token from BotFather.
  • Chat ID: Enter the numeric ID from userinfobot.
  • Allow DLL: Ensure "Allow DLL imports" is checked in MT5 Expert settings (Tools > Options > Expert Advisors).

CRITICAL:

For MetaTrader to communicate with Telegram, you must add the Telegram API URL to your allowed list:


  • In MT5, go to Tools > Options > Expert Advisors.
  • Check "Allow WebRequest for listed URL".


Click the Test Connection button in the panel. If configured correctly, your phone should receive a "Connection Successful" message instantly!