witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.09k stars 302 forks source link

bot.getUpdates Long wait without internet. #305

Open workpage2 opened 1 year ago

workpage2 commented 1 year ago

In the absence of the Internet, bot.getUpdates hangs for 2 minutes. How to shorten the timeout?

workpage2 commented 1 year ago

I found a solution! In the WiFiClientSecure.cpp file, you need to change the timeout from 120000 to 10000.