Send message to telegram from Metatrader - MetaTrader 4 script

Using this script you can send messages to Telegram from MetaTrader 4.
Place the code in the Scripts directory.
From Main Menu -> Tools -> Options, tab Expert Advisor , add the following address allow URL part:
https://api.telegram.org
Customize the following variables in your code:
Get the bot token @BotFather and enter it into the following variable:
string token = "xxxxxxxxxxxxxxx" ;
Get the chat ID of the recipient @userinfobot and enter it into the following variable:
String Chat ID = "xxxxx" ;
Enter the desired message in the following variables:
string message = "Salam@JahanChart" ;
Be sure to test on an external server that does not have filtering issues, or if testing on your system, connect a filter breaker that all network traffic passes through. (Enabling MetaTrader internal broker does not help)
#Code #MetaTrader #Telegram #cryptocurrency #cryptocurrency #cryptocurrency #cryptocurrency
Attachment download
📎 send_telegram.mq4 (2.42 KB)
📎 stderror.mqh (9.81 KB)
📎 stdlib.mqh (0.65 KB)
Source: MQL5 #32980
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •