We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I want to use some command and action handlers as global so that they work regardless of the user's current scene.
In my telegraph bot I implemented it like this.
export const globalCommands = new Composer<AppContext>(); globalCommands.command('start', startHandler); globalCommands.command('exit', exitHandler);
bot.use((ctx, next) => { const scenes: Map<string, BaseScene<AppContext>> = stages.scenes; const scene = new SceneContextScene<AppContext, AppWizardSession>( ctx, scenes, stages.options, ); ctx.scene = scene; return next(); }); bot.use(globalCommands); bot.use(globalHandlers); bot.use(stages.middleware());
How do I do this with nestjs-telegraf?
The text was updated successfully, but these errors were encountered:
It would be great if we had a GlobalUpdate decorator that would be processed before the scenes
Sorry, something went wrong.
Any updates on this?
Successfully merging a pull request may close this issue.
Hi, I want to use some command and action handlers as global so that they work regardless of the user's current scene.
In my telegraph bot I implemented it like this.
How do I do this with nestjs-telegraf?
The text was updated successfully, but these errors were encountered: