From 9c152b18ee9c7a160173b6e2b284189eaee2c703 Mon Sep 17 00:00:00 2001 From: Kirill Ivlev Date: Mon, 25 Nov 2024 20:56:19 +0400 Subject: [PATCH] bugfix --- src/bot/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot/handlers.ts b/src/bot/handlers.ts index 1804f39..7949586 100644 --- a/src/bot/handlers.ts +++ b/src/bot/handlers.ts @@ -12,7 +12,7 @@ export class TGHandlers { if(data) { gameService.emit({ cmd: 'ApplyDebuff'}, { ...ctx.callbackQuery, from: ctx.from.id }); await ctx.editMessageReplyMarkup(undefined); - await ctx.editMessageText("ответ принят!"); + await ctx.editMessageText(ctx.update.callback_query.data); } if(ctx.update.callback_query.message.text.indexOf('Внимание') !== -1) { const answer =ctx.update.callback_query.data; @@ -23,7 +23,7 @@ export class TGHandlers { } - await ctx.editMessageText("ответ принят!"); + await ctx.editMessageText(answer); } else if(ctx.update.callback_query.data.startsWith('card/')) { const cardtoplay = ctx.update.callback_query.data.substring('card/'.length); gameService.emit({cmd: 'CardPlayed'}, {text: cardtoplay, user: ctx.update.callback_query.from.id})