nestjs-telegraf
nestjs-telegraf copied to clipboard
How to use wizard with composer?
I want to make wizard same as example below, but using nestjs-telegraf
decorators. Is it possible?
const stepHandler = new Composer<Scenes.WizardContext>();
stepHandler.command('next', (ctx) => {
ctx.wizard.next();
});
const wizard = new Scenes.WizardScene(
'wizard',
(ctx) => {
ctx.wizard.next();
},
stepHandler,
async (ctx) => {
await ctx.scene.leave();
},
);
I had to override the registerScenes
method to solve this issue