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

fix: little style fixes

This commit is contained in:
uburuntu
2018-08-17 12:49:37 +03:00
parent 54eba946be
commit feec1dde56
7 changed files with 10 additions and 9 deletions

View File

@@ -1294,14 +1294,14 @@ class TeleBot:
was_poped = False
if chat_id in self.next_step_handlers.keys():
handlers = self.next_step_handlers.pop(chat_id, None)
if (handlers):
if handlers:
for handler in handlers:
self._exec_task(handler["callback"], message, *handler["args"], **handler["kwargs"])
new_messages.pop(i) # removing message that detects with next_step_handler
was_poped = True
if self.next_step_saver is not None:
self.next_step_saver.start_save_timer()
if (not was_poped):
if not was_poped:
i += 1