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

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
If the bot is in the channel and has permission to send messages, you can.
The bot is added to the channel administrators and has the right to send messages. It sends messages to the public channel, but as soon as I make it private, it starts writing "Bad request". I understand that I need to substitute the link to the channel (for the public version) with a link to the private version of the channel...? Or how to do it correctly?
The bot is added to the channel administrators and has the right to send messages. It sends messages to the public channel, but as soon as I make it private, it starts writing "Bad request". I understand that I need to substitute the link to the channel (for the public version) with a link to the private version of the channel...? Or how to do it correctly?
You mean the private channel?
Yes
you can send it, send it by channel id.
Sometimes, when trying to send a screenshot of a graph, it says: "Error: Unknown error 5020" - the file does not exist. Although it is present in the Files folder. This happens sometimes. Sometimes it publishes everything in a row (I make more than 3 seconds delay between sending messages). The algorithm itself looks as follows: the bot opens a chart, moves the chart to the rightmost position, creates arrows (price levels), takes a screenshot, sends it (after sending a delay of 3 seconds just ... without it for some reason does not want to send it), deletes the arrows and after checking for the presence of the file deletes it. Or does not delete it. If the bot gives error 5020 when sending, the FileIsExist function returns nonsense. I tried to set delays after file creation, but it didn't help much. I send to an open channel. The extension is .gif.
How bad is this solution (sending screenshots like this)? The code is probably far from ideal, but why doesn't it want to send screenshots? Or rather, sometimes it sends them normally, and sometimes it doesn't want to send them at all. Internet seems to be normal...
Sometimes, when trying to send a screenshot of a graph, it says: "Error: Unknown error 5020" - the file does not exist. Although it is present in the Files folder. This happens sometimes. Sometimes it publishes everything in a row (I make more than 3 seconds delay between sending messages). The algorithm itself looks as follows: the bot opens a chart, moves the chart to the rightmost position, creates arrows (price levels), takes a screenshot, sends it (after sending a delay of 3 seconds just ... without it for some reason does not want to send it), deletes the arrows and after checking for the presence of the file deletes it. Or does not delete it. If the bot gives error 5020 when sending, the FileIsExist function returns nonsense. I tried to set delays after file creation, but it didn't help much. I send to an open channel. The extension is .gif.
How bad is this solution (sending screenshots like this)? The code is probably far from ideal, but why doesn't it want to send screenshots? Or rather, sometimes it sends them normally, and sometimes it doesn't want to send them at all. Internet seems to be normal...
Look, there was a discussion.
The file does not have time to record, you need to wait.
I use Chat_ID and i type the 2 link in the MT5, but still has error
"Error: Unknown error 1001"
Can anyone know what wrong? Please help
Thanks, how can i get the chat_id ?
forward message from private channel to @getidsbot
When compiling telegram_bot MT5