From 79278370d8ef9c5660ca676f0169faf8f92ff1f9 Mon Sep 17 00:00:00 2001 From: Kirill Ivlev Date: Wed, 13 Nov 2024 19:04:48 +0400 Subject: [PATCH] fix no thanks behaviour --- src/bot/bot.update.ts | 5 +++++ src/bot/handlers.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bot/bot.update.ts b/src/bot/bot.update.ts index 5d698d6..2fe1711 100644 --- a/src/bot/bot.update.ts +++ b/src/bot/bot.update.ts @@ -66,6 +66,11 @@ export class BotUpdate { await ctx.scene.enter(REGISTER_SCENE_ID); } + @Hears(Messages.NOTHING_THANKS) + async onNothingThanks(@Ctx() ctx: Context) { + this.globalCmd.hideKeyboard(ctx); + } + @Hears(Messages.GO) async onGoCommand(@Ctx() ctx: Context) { await ctx.scene.enter(QUIZ_SCENE); diff --git a/src/bot/handlers.ts b/src/bot/handlers.ts index ec18bb9..2738d62 100644 --- a/src/bot/handlers.ts +++ b/src/bot/handlers.ts @@ -26,7 +26,7 @@ export class TGHandlers { await ctx.editMessageText("карта выбрана"); } else { - //console.log(ctx.update); + console.log(ctx.update); } } } \ No newline at end of file