How to leave() from WizardScene?
See original GitHub issueI tried bot.command("cancel", leave());
, wizardName.command
and .action
. No action, just errors in console.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Telegraf.js: leave WizardScene with a button - Stack Overflow
leave ('super-wizard'); });. The program writes correctly the text, and puts the button. But if i press "CANCEL" it gives error at: ctx ......
Read more >Telegraf Snipgram - Visual Studio Marketplace
Launch VS Code Quick Open ( Ctrl+P ), paste the following command, and press enter. Copy. Copied to clipboard. More Info ...
Read more >telegraf - Bountysource
Hi there! Here I have a problem: I am on the some scene and lets say there is 4 stages so situatiots go...
Read more >v4.11.2 Scenes WizardScene - Telegraf
Generates middleware for handling updates narrowed by update types or filter queries. Type Parameters. Ctx extends Context<Update, Ctx> ...
Read more >How to build a Telegram OCR bot - LogRocket Blog
step2.command('cancel', (ctx) => { ctx.reply('Bye bye') return ctx.scene.leave() }) const imageScene = new WizardScene('imageScene', ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve a more than 20 steps in my wizard. I think it’s a not good idea to add this logic to each one.
Would be better
@dobeerman from next version,
WizardScene
will be compatible withComposer
Thank you for your time 👍