How to Set Up BotFather for MT4 → Telegram Messages
Follow these steps to create a Telegram bot using BotFather and connect it with your MT4-to-Telegram Utility.
1. Open Telegram and Start BotFather
- In Telegram, search for BotFather (the official Telegram bot).

2. Create a New Bot
- Start a chat with BotFather and type
/start
. - Type
/newbot
. - BotFather will ask you for:
- Bot Name – This is the display name (e.g., MT4 Trade Notifier).
- Bot Username – Must end with
bot
(e.g., MT4NotifierBot).

- Once created, BotFather will give you a Telegram Bot Token. Copy and save this token.

3. Get Your Chat ID
- Open your new bot and click Start.
- To find your Chat ID:
-
Replace
BOT_TOKEN
with your token from BotFather in this URL:
https://api.telegram.org/botBOT_TOKEN/getUpdates -
Enter the URL in any browser (make sure it has the bot prefix!):
https://api.telegram.org/bot(TOKEN)/getUpdates
-
You will get a JSON response similar to:
"chat": { "id": 123456789, "first_name": "YourName", ... }
-
The number in
"id"
is your Chat ID. - Video Tutorial: Watch on YouTube
-
Replace
4. Configure the EA in MT4
- Open MT4 → go to Navigator → Expert Advisors.
- Attach your MT4-to-Telegram EA to any chart.
- In the input settings, enter:
- Telegram Bot Token – (from BotFather).
- Telegram Chat ID – (your personal or group/channel chat ID).

5. Test the Connection
- Enable AutoTrading in MT4.
- Open any random order and you should receive a message
- If you receive the message, setup is complete ✅
- Make sure the bot token and chart id are correct ✅
Notes
- This bot can send open/close trade notifications, price alerts, or any custom messages from MT4.
- Always test on a demo account before going live.
- If using a group, add your bot to the group and use the group’s chat ID.