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

 
Sergey Zhilinskiy #:

https://core.telegram.org/bots/api#deletewebhook needs to do this

Thank you
 

Hi admin & everyone!

How to get new chat from Chanel (added bot)?

Thank you!

 

How to remove the keyboard in the cart. It doesn't want to do that. It compiles without errors.

bot.ReplyKeyboardHide();

Found it, only the user id in the cart must be known.

 bot.SendMessage(ChatId,"Close on the buttons",bot.ReplyKeyboardHide(),false,false);
 
Wow, got it working in the indicator, didn't read carefully earlier))))))
#include <Webrequest_dll.mqh>
#define WebRequest _WebRequest
#include <Telegram.mqh>

_WebRequest instead of the standard WebRequest.

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


 
{"ok":false,"error_code":409,"description":"Conflict: can't use getUpdates method while webhook is active; use deleteWebhook to delete the webhook first"}

Help solve the problem.

 
Vladimir Pastushak #:

Help solve the problem.

4 posts above ))

 
Sergey Zhilinskiy #:

4 posts above ))

Saw it, thanks, but don't know what to do....

 
Vladimir Pastushak #:

Saw it, thanks, but don't know what to do.....

The answer is in the error itself


 
Sergey Zhilinskiy #:

In the error itself, the answer

I understand it, but I don't know how to implement it. Is there a code example?

 
Vladimir Pastushak #:

I understand it, but I don't know how to implement it. Is there a code example?

If I understand correctly, send a message with the command.