'Telegram bot long polling stops at 50s
I wrote a simple C++ program where I use libcurl to send a HTTP POST request at getUpdates URL with the parameter timeout=3600 but it returns after 50 seconds instead of the 1 hour required.
Does anybody know how to set the Telegram long polling time longer than 50 seconds?
Thanks, Simone
Solution 1:[1]
This isn't a problem with your code, I found the same problem with my python implementation. 50sec seems to be the maximum.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | pHbits |