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

 
Andrey Khatimlianskii:

  • I would check MT5 on the same computer.
I will test it in the evening, I will write about the result.

I don't think it will work with your Expert Advisor either, as the examples from the article don't work either, so no thanks. Wininet. dll is in this thread, I tried it, the result is the same....
 
Sergey Kolemanov:
Wininet. dll is in this branch, I tried it, the result is the same....

Well, then the problem is in the VPN.

I don't know how to force it to send all traffic through itself.

 
By the way, MT5 build 1881 sends without VPN. Until recently I used this build only for sending messages to Telegram.
 
Andrey Khatimlianskii:

Well, then it's the VPN.

I don't know how to force it to send all traffic through itself.

I checked it on MT5, I also get the same error, only different: Unknown error 1001.

I think it's not the VPN because:

  • link https://api.telegram.org/ opens
  • three weeks ago everything worked through the same VPN.
  • VPN server location is in Oslo, i.e. not in Russia.
Andrei, do you also use the library from this article in your EA, or do you have a different one ?

p.s. checked the new vpn, also does not work on MT4, not on MT5. Still there is a suspicion that the library in this implementation cannot work with TLS 1.2 protocol.
 
Send all messages not by recipient name, but by ID and then there will be no problems
 
Vladimir Mametov:
Send all messages not by recipient name but by ID and then there will be no problems

Are you talking about the library from this article or about how to implement in general ?

 
Sergey Kolemanov:

Andrei, do you also use the library from this article in your EA, or do you have another ?

My EA is based on this library. But nothing has changed fundamentally.

Perhaps this is the reason:

Vladimir Mametov:
Send all messages not by the recipient's name, but by ID and then there will be no problems.

I send exactly by ID (I have not checked the name).

 
Andrey Khatimlianskii:

I have it based on this library. But nothing has changed in principle.

Maybe that's it:

I send exactly by i-di (I didn't check the name).

Thanks for your help, I'll look into it myself....
 
Andrey Khatimlianskii:

I have it based on this library. But nothing has changed in principle.

Maybe that's it:

I send exactly by i-di (I didn't check the name).

It used to work fine by name, but then it stopped working.

 
There are a lot of browser vpn's for Windows, quite a few proxy programmes (e.g. TOR/Orbot), and only a few system level programmes that intercept all traffic, and they are paid. Intercepting all traffic is wrong in my opinion, there speed is low. And WebRequest ignores proxy settings of theterminal.