telebot
telebot copied to clipboard
request may not timeout on internet-loss
In some situations TeleBot was not handling requests anymore after the internetconnection was lost. In this case.
I think the problem is, that no timeout parameter is passed to the request-post call in TeleBot.request and therefore it get stuck if the connection drops while making that request.
Adding a timeout to the options solved this problem, anyways I'm not sure this is the best way to handle this and if should be a static timeout or be a configurable parameter.