bugfix
This commit is contained in:
parent
e151e5c285
commit
1a5c249f28
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ export class TGHandlers {
|
||||||
if(data) {
|
if(data) {
|
||||||
gameService.emit({ cmd: 'ApplyDebuff'}, { ...ctx.callbackQuery, from: ctx.from.id });
|
gameService.emit({ cmd: 'ApplyDebuff'}, { ...ctx.callbackQuery, from: ctx.from.id });
|
||||||
await ctx.editMessageReplyMarkup(undefined);
|
await ctx.editMessageReplyMarkup(undefined);
|
||||||
await ctx.editMessageText("ответ принят!");
|
await ctx.editMessageText(ctx.update.callback_query.data);
|
||||||
}
|
}
|
||||||
if(ctx.update.callback_query.message.text.indexOf('Внимание') !== -1) {
|
if(ctx.update.callback_query.message.text.indexOf('Внимание') !== -1) {
|
||||||
const answer =ctx.update.callback_query.data;
|
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/')) {
|
} else if(ctx.update.callback_query.data.startsWith('card/')) {
|
||||||
const cardtoplay = ctx.update.callback_query.data.substring('card/'.length);
|
const cardtoplay = ctx.update.callback_query.data.substring('card/'.length);
|
||||||
gameService.emit({cmd: 'CardPlayed'}, {text: cardtoplay, user: ctx.update.callback_query.from.id})
|
gameService.emit({cmd: 'CardPlayed'}, {text: cardtoplay, user: ctx.update.callback_query.from.id})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue