Send alert on Telegram from MT5 Indicator

 
Hello everyone. Do you have any information or documentation on how to implement a code in an MT5 indicator to send alerts to Telegram?

Thank you very much.
 
Creating an MQL5-Telegram Integrated Expert Advisor (Part 1): Sending Messages from MQL5 to Telegram
Creating an MQL5-Telegram Integrated Expert Advisor (Part 1): Sending Messages from MQL5 to Telegram
  • 2024.08.08
  • www.mql5.com
In this article, we create an Expert Advisor (EA) in MQL5 to send messages to Telegram using a bot. We set up the necessary parameters, including the bot's API token and chat ID, and then perform an HTTP POST request to deliver the messages. Later, we handle the response to ensure successful delivery and troubleshoot any issues that arise in case of failure. This ensures we send messages from MQL5 to Telegram via the created bot.
 
WebRequest cannot be applied in Indicators. So you cannot connect to Telegram via Indicators. You have to create an Expert Advisor for that purpose.