mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Fix callback query handlers
This commit is contained in:
@@ -116,7 +116,7 @@ export function registerRandomItemCallback<T>(
|
|||||||
[Markup.button.callback("Повторить?", callback_data)]
|
[Markup.button.callback("Повторить?", callback_data)]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
ctx.editMessageReplyMarkup(undefined);
|
ctx.editMessageReplyMarkup(Markup.inlineKeyboard([]).reply_markup);
|
||||||
|
|
||||||
ctx.reply(itemFormatter(item), {
|
ctx.reply(itemFormatter(item), {
|
||||||
reply_markup: keyboard.reply_markup,
|
reply_markup: keyboard.reply_markup,
|
||||||
@@ -164,7 +164,9 @@ export function registerLanguageSettingsCallback(
|
|||||||
|
|
||||||
const keyboard = await getUserAllowedLangsKeyboard(user.id);
|
const keyboard = await getUserAllowedLangsKeyboard(user.id);
|
||||||
|
|
||||||
|
try {
|
||||||
ctx.editMessageReplyMarkup(keyboard.reply_markup);
|
ctx.editMessageReplyMarkup(keyboard.reply_markup);
|
||||||
|
} catch {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user