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
- Open Telegram and search for @BotFather. This is the official bot for creating other bots.
- Start a chat with BotFather and send the command: /newbot
- Follow the prompts: Give your bot a Name (e.g., MyAstroTradeBot) and a Username (must end in "bot", e.g., trader_astro_x_bot).
- BotFather will provide you with an API Token. It looks like this: 123456789:ABCDefGhIJKlmNoPQRstuVWXyzCopy 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".
- Add the following URL: https://api.telegram.org
Click the Test Connection button in the panel. If configured correctly, your phone should receive a "Connection Successful" message instantly!


