-
Hi everybody! |
Beta Was this translation helpful? Give feedback.
Answered by
MKRhere
Mar 30, 2022
Replies: 1 comment
-
If you have only one main state (to which you can ever go "back" to), you can simply attach the same listener for If you will have nested states ("Back" may lead to multiple previous menus), you may need to use Scenes. Consider checking out this post: https://dev.to/maklut/telegraf-vs-node-telegram-bot-api-36fk#telegraf-scenes |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Sodikjon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have only one main state (to which you can ever go "back" to), you can simply attach the same listener for
ctx.command("course", main)
andctx.hears("Back", main)
.If you will have nested states ("Back" may lead to multiple previous menus), you may need to use Scenes. Consider checking out this post: https://dev.to/maklut/telegraf-vs-node-telegram-bot-api-36fk#telegraf-scenes