mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
fix syntax errors
This commit is contained in:
parent
18e37f3d20
commit
b82ed70ec9
@ -364,7 +364,7 @@ class TeleBot:
|
|||||||
for listener in self.update_listener:
|
for listener in self.update_listener:
|
||||||
self._exec_task(listener, new_messages)
|
self._exec_task(listener, new_messages)
|
||||||
|
|
||||||
def infinity_polling(self, timeout: int = 20, *args, **kwargs):
|
def infinity_polling(self, timeout=20, *args, **kwargs):
|
||||||
while not self.__stop_polling.is_set():
|
while not self.__stop_polling.is_set():
|
||||||
try:
|
try:
|
||||||
self.polling(timeout=timeout, *args, **kwargs)
|
self.polling(timeout=timeout, *args, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user