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

 
Comrades, who uses this wonderful library, does everything work ? After updating to 1910 build, the GetMe function stopped working for me - Error: Unknown error 1001 (Win 7, 64 ). It seems to be a problem with the webquest again. No problems on older builds.

 
Is it possible to do the reverse?

Receive message on Telegram and then that sends the execution order to MT4 with my own trade size parameters?
 
Thank you ! this article is awesome and helpful !
 
   bot.Token(MY_TELEGRAM_TOKEN);
   int res = bot.GetMe();
   Print("ERROR ",GetErrorDescription(GetLastError()));
   Print("Init res ",res);

I've use this basic code and tried many times last few days but keep getting this error: 

2018.12.22 23:50:50.792 EA (CADJPY,M30) ERROR HTTP request failed

2018.12.22 23:50:50.792 EA (CADJPY,M30) Init res 1001

I've tried to use `WebRequest` directly to `getMe` method but same issue. (sometime it return error 1003 as well)

However when I've built localhost API, the `WebRequest` can connect and does return api response successfully.

Please help...! Thank you in advance!

 
Good afternoon. Friends, I'm trying to implement sending a screen from the indicator to the chat when pressing the keyboard button. There are no errors during compilation, but when pressing the button, the indicator is removed from the chart and does not send a screen to the chat.
 
Alexander Mikryukov:
Good afternoon. Friends, I'm trying to implement sending a screen from the indicator to the chat when pressing a keyboard button. There are no errors during compilation, but it doesn't send the screen to the chat.

WebRequest function does not work in indicators. In your case you will have to do it through wininet.dll

 
Andrey Voytenko:

WebRequest function does not work in indicators. In your case you will have to do it via wininet.dll

If you can kick in what direction to dig, I am new to these issues. Thanks in advance.

 
Alexander Mikryukov:

If you can kick in what direction to dig, I am new to these issues. Thanks in advance.

So you don't have to dig deep, here is a ready-made variant.

You plug in the file

#include <Webrequest_dll.mqh>

and use _WebRequest instead of the standard WebRequest.

It should work at once. If not, then it's better to contact me with your code.

Files:
 
Thanks, I'll give it a try.
 

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