mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update __init__.py
This commit is contained in:
parent
967b94b14f
commit
e721910c0c
@ -2746,7 +2746,7 @@ class TeleBot:
|
||||
"""
|
||||
self.state_handlers.append(handler_dict)
|
||||
|
||||
def register_state_handler(self, state, content_types=None, regexp=None, func=None, chat_types=None, **kwargs):
|
||||
def register_state_handler(self, callback, state, content_types=None, regexp=None, func=None, chat_types=None, **kwargs):
|
||||
"""
|
||||
Register a state handler.
|
||||
:param callback: function to be called
|
||||
@ -2754,7 +2754,7 @@ class TeleBot:
|
||||
:param content_types:
|
||||
:param func:
|
||||
"""
|
||||
handler_dict = self._build_handler_dict(handler,
|
||||
handler_dict = self._build_handler_dict(callback=callback,
|
||||
state=state,
|
||||
content_types=content_types,
|
||||
regexp=regexp,
|
||||
|
Loading…
Reference in New Issue
Block a user