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

Merge pull request #389 from mostafaqanbaryan/patch-1

Update __init__.py
This commit is contained in:
FrankWang 2017-08-22 04:06:08 +07:00 committed by GitHub
commit be786021dc

View File

@ -999,6 +999,15 @@ class TeleBot:
else:
self.pre_message_subscribers_next_step[chat_id] = [callback]
def clear_step_handler(self, message):
"""
Clears all callback functions registered by register_next_step_handler().
:param message: The message for which we want to handle new message after that in same chat.
"""
chat_id = message.chat.id
self.pre_message_subscribers_next_step[chat_id] = []
def _notify_message_next_handler(self, new_messages):
for message in new_messages:
chat_id = message.chat.id