feat(): add middleware support & refactor

This commit is contained in:
Arthur
2020-12-30 01:49:09 +03:00
parent 306f239603
commit 3e585859d0
35 changed files with 105 additions and 81 deletions

View File

@@ -11,7 +11,7 @@ export class HelloScene {
}
@SceneLeave()
async onSceneLeave(): Promise<void> {
async onSceneLeave(ctx: Context): Promise<void> {
console.log('Leave from scene');
await ctx.reply('Bye Bye 👋');
}