Skip to content

Does register_next_step_handler support pass_bot param? #1878

Answered by coder2020official
40huo asked this question in Q&A
Discussion options

You must be logged in to vote

just add bot parameter to register_next_step hander like:

bot.register_next_step_handler(message, func, bot=bot)

def func(message, bot):

Something like this. The purpose is that you can pass keyword or positional arguments to your next function.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 40huo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1877 on January 08, 2023 13:31.