Answer the question
In order to leave comments, you need to log in
How to pass multiple parameters to register_next_step_handler(message, my_func) on pytelegrambotapi?
Hello, please help: how can I pass several parameters to register_next_step_handler(message, my_func)? For example message and password. pytelegrambotapi framework
Answer the question
In order to leave comments, you need to log in
register_next_step_handler(message, my_func, password)
def register_next_step_handler(
self, message: types.Message, callback: Callable, *args, **kwargs) -> None:
"""
Registers a callback function to be notified when new message arrives after `message`.
Warning: In case `callback` as lambda function, saving next step handlers will not work.
:param message: The message for which we want to handle new message in the same chat.
:param callback: The callback function which next new message arrives.
:param args: Args to pass in callback func
:param kwargs: Args to pass in callback func
"""
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question