Sending message from MT5 to Telegram using Webrequest returns 1007 error

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi master MQL coders,
I have been trying my hand on using Telegram to get updates about my expert advisors. Lately I created a Telegram channel where I want to send entries taken by an expert advisor. However, I encounter error 1007. This is the first time I encountered this error, and I could not find helpful resources here or elsewhere online. Are you familiar with this error?
By the way, here is a snippet of my code:
I was able to get the desired text format when I use the SendNotification function. However, the Telegram message is not sent because Webrequest returns 1007 error.
By the way, here is my desired text output:
[BUY/SELL] [symbol] @ [entryprice]
TP1: [TP1]
TP2: [TP2]
TP3: [TP3]
SL: [SL]