This commit is contained in:
Kirill Ivlev 2024-11-25 20:56:19 +04:00
parent 596de122e3
commit 9c152b18ee

View file

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