1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
pyTelegramBotAPI/telebot
Badiboy 78afd045d8 _notify_next_handlers drops messages if empty handler list
After calling
clear_step_handler(...)
code:
self.next_step_handlers[chat_id] = []
left the key in next_step_handlers.
When a next message arrives, the old handler executes nothing (no handlers), but still remove message from message queue:
new_messages.pop(i).

Updated to pop message only when there are real handlers in the list.
2018-05-27 23:24:37 +03:00
..
__init__.py _notify_next_handlers drops messages if empty handler list 2018-05-27 23:24:37 +03:00
apihelper.py Renaming back pytelegrambotapi module to telebot 2018-04-28 13:50:59 +03:00
types.py html_text fix and html_caption 2018-05-14 13:29:34 +03:00
util.py Renaming back pytelegrambotapi module to telebot 2018-04-28 13:50:59 +03:00