Discussion of article "How to create bots for Telegram in MQL5" - page 15

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
SendPhoto
The class has implemented the opportunity to send photos with two ways of application.
There are several way's to send a photo.
I can see that you have a minus sign.
You can look in the Telegram.mqh file.
If you look in the mqh file you can see
So in your case you can try a modification like this
Do not double post!
I will delete your topic and move the replies here.
Andrey Voytenko basically i added the files that you use and then modified the script I have to send to telegram instead of email when executing a trade action. That works except when opening a trade it will send the message multiple times
I comfirm that with little modifaction from post #46, the code is working fine on MT5 for send alerts to channels.
Comfirm also that send requests to the bot for control EA is working.
But anyone succedd to lock this requests from bot to EA at only some "from_id" ? So the bot only listen requests from specific ID.
I comfirm that with little modifaction from post #46, the code is working fine on MT5 for send alerts to channels.
Comfirm also that send requests to the bot for control EA is working.
But anyone succedd to lock this requests from bot to EA at only some "from_id" ? So the bot only listen requests from specific ID.
For those who want to lock the Bot request to Telegram Account ID, find this line in Telegram.mqh :
Every tick I got error:
Telegram_Signal_EA GBPUSD,M1: Error:Bad Request
Telegram_Signal_EA GBPUSD,M1: {"ok":false,"error_code":400,"description":"Bad Request: chat not found"}
Do you have any suggestions?
@ade kurniawan you should work with private channels using chat ID (not channel name).
@ade kurniawan you should work with private channels using chart ID (not channel name).