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})