mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1551 from everpcpc/patch-1
fix: warning none_stop parameter is deprecated
This commit is contained in:
commit
feffe726dd
@ -566,7 +566,7 @@ class TeleBot:
|
|||||||
|
|
||||||
while not self.__stop_polling.is_set():
|
while not self.__stop_polling.is_set():
|
||||||
try:
|
try:
|
||||||
self.polling(none_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout,
|
self.polling(non_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout,
|
||||||
logger_level=logger_level, allowed_updates=allowed_updates, *args, **kwargs)
|
logger_level=logger_level, allowed_updates=allowed_updates, *args, **kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if logger_level and logger_level >= logging.ERROR:
|
if logger_level and logger_level >= logging.ERROR:
|
||||||
|
Loading…
Reference in New Issue
Block a user