Skip to content

Commit a82fece

Browse files
committed
Add method.
1 parent 8f13b63 commit a82fece

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎telebot/__init__.py‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import time
1111

1212
import logging
13+
1314
logger = logging.getLogger('Telebot')
1415
import re
1516
from telebot import apihelper, types
@@ -323,6 +324,13 @@ def register_for_reply(self, message, callback):
323324
self.message_subscribers_messages.pop()
324325
self.message_subscribers_callbacks.pop()
325326

327+
def next_step_handler(self, message):
328+
"""
329+
330+
:param message:
331+
"""
332+
pass
333+
326334
def _notify_message_subscribers(self, new_messages):
327335
for message in new_messages:
328336
if not hasattr(message, 'reply_to_message'):
@@ -336,6 +344,7 @@ def _notify_message_subscribers(self, new_messages):
336344
del self.message_subscribers_messages[index]
337345
del self.message_subscribers_callbacks[index]
338346

347+
339348
def message_handler(self, commands=None, regexp=None, func=None, content_types=['text']):
340349
"""
341350
Message handler decorator.
@@ -379,8 +388,6 @@ def decorator(fn):
379388

380389
return decorator
381390

382-
383-
384391
@staticmethod
385392
def _test_message_handler(message_handler, message):
386393
if message.content_type not in message_handler['content_types']:
@@ -490,4 +497,3 @@ def send_location(self, *args, **kwargs):
490497
@async()
491498
def send_chat_action(self, *args, **kwargs):
492499
return TeleBot.send_chat_action(self, *args, **kwargs)
493-

0 commit comments

Comments
 (0)