How to call correctly callback_query #1910
Unanswered
Alheimurin
asked this question in
Q&A
Replies: 2 comments
-
What's the problem here please? |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you want the selected step to be run right away, you should call it. (ctx, next) => {
...
if (ctx.callbackQuery?.data === "stock") {
ctx.wizard.selectStep(5);
return ctx.wizard.step(ctx, next);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have 2 buttons.
If user press 1st button - scene steps 1-2-3-4 (default scene steps).
But if user press 2nd button - selected step 5 (and so on scene), while skipped 1 - 2 - 3.
Need at press 2nd button, select step 5 and call
callback_query
.In my code correct skip to step 5, but
callback_query
call only after double clickHandling button with skip steps
and step 5 on this wizard.scene
Friends, help me please.
Beta Was this translation helpful? Give feedback.
All reactions