1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

long_polling_timeout update 3

This commit is contained in:
Badiboy 2020-11-07 14:59:45 +03:00
parent a548374a4d
commit 00d125a298

View File

@ -431,7 +431,7 @@ class TeleBot:
def infinity_polling(self, timeout=20, long_polling_timeout=20, *args, **kwargs): def infinity_polling(self, timeout=20, long_polling_timeout=20, *args, **kwargs):
while not self.__stop_polling.is_set(): while not self.__stop_polling.is_set():
try: try:
self.polling(timeout=timeout, long_polling_timeout=long_polling_timeout, *args, **kwargs) self.polling(none_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout, *args, **kwargs)
except Exception: except Exception:
time.sleep(3) time.sleep(3)
pass pass