TelegramNotifyEA

25 March 2026, 21:15
Maros Petrik
0
126
1. Create Your Telegram Bot
  1. Open Telegram (mobile or desktop).
  2. Search for
    @BotFather
    and open the chat.
  3. Send the command: /newbot
  4. BotFather will ask for a name → type something like My MT5 Trade Bot
  5. Then ask for a username → type something like MyMT5TradeBot (must end with _bot)
  6. BotFather will reply with your Bot Token (example: 7123456789:AAHxxxxxxxxxxxxxxxxxxxxxxxxxxxxx).
    Copy and save it — you will need it in the next step.
2. Get Your Chat IDEasiest method (recommended):
  1. In Telegram, search for
    @getmyid_bot
  2. Start the chat and send any message (e.g. hi).
  3. The bot will immediately reply with your Chat ID. ✅ Private chat: positive number (e.g. 123456789)
    ✅ Group / Channel: negative number (e.g. -1234567890 or -1001234567890)
Alternative (no extra bots):
  1. Send /start to your new bot.
  2. Open a browser and go to:
    https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates
    (replace YOUR_BOT_TOKEN with the real token)
  3. Look for the number after "chat":{"id": — that’s your Chat ID.
3. Attach the EA to a Chart & Configure It
  1. In MT5, open any chart (any symbol/timeframe — it doesn’t matter).
  2. Drag TelegramNotifyEA from the Navigator panel onto the chart.
  3. The settings window will open. Fill in these critical fields:Telegram Settings
    • Bot Token → paste the token from BotFather
    • Chat ID → paste the ID you got from
      @getmyid_bot
    • Display name in messages → whatever you want (e.g. “My Live Account”)
4. Allow WebRequest (VERY IMPORTANT)Without this step the EA cannot send messages!
  1. In MT5 go to: Tools → Options → Expert Advisors tab
  2. Tick the box “Allow WebRequest for listed URL”
  3. Click the Add button and paste exactly this URL:
    https://api.telegram.org
Important Note ⚠️ Group users: Make sure the bot is added to the group and has “Send Messages” permission. ✅ Once you complete these steps, the EA will send a startup message immediately.


Issues + Solutions

No startup message after attaching EA
Double-check Bot Token and Chat ID are copied correctly (no extra spaces). Re-attach the EA to the chart.

Error 4014 in the Experts log
WebRequest is not allowed. Go to Tools → Options → Expert Advisors and add https://api.telegram.org to the list.

No messages at all (even after correct setup)
Make sure the EA is actually running (smiley face on chart) and the chart is not minimized or closed.

Bot does not send messages in a group
Add the bot to the group and give it “Send Messages” permission. For channels, make sure the bot is an administrator.

Messages are truncated or cut off
The EA already limits messages to 4000 characters. This is normal Telegram limit.

Chat ID is wrong (e.g. using
@username
instead of number)
You must use the numeric Chat ID only (positive or negative number). Usernames do not work.

EA works on PC but not on VPS
On VPS: re-do the WebRequest permission in the MT5 terminal running on the VPS. Also make sure the terminal stays logged in 24/7.

Bot Token copied with extra spaces or line breaks
Delete and re-copy the token from BotFather exactly as shown.

Antivirus / firewall blocks connection
Temporarily disable antivirus or add an exception for MetaTrader 5.

“WebRequest failed” or HTTP error in log
Check your internet connection. Restart MT5. Re-allow the URL in Options.

TelegramNotifyEA MT4: https://www.mql5.com/en/market/product/170583?source=Site
TelegramNotifyEA MT5: https://www.mql5.com/en/market/product/170258?source=Site