cotestatnt / AsyncTelegram2

Powerful, flexible and secure Arduino Telegram BOT library. Hardware independent, it can be used with any MCU capable of handling an SSL connection.
MIT License
83 stars 25 forks source link

Use long polling #123

Open sanderkob opened 10 months ago

sanderkob commented 10 months ago

What is needed to implement long polling? Simply changing the timeout value in https://github.com/cotestatnt/AsyncTelegram2/blob/e48c5a940ac1700b28f33b5c673e03de2d6420b6/src/AsyncTelegram2.cpp#L138 does not work, at least not in my setup. I was expecting this to work, since the connection from the bot to the server is only closed when instructed by the server.