Fix annotation sending

This commit is contained in:
2022-01-03 13:04:13 +03:00
parent fc1caf0d18
commit 4bd8025e39

View File

@@ -147,7 +147,9 @@ export async function createApprovedBot(token: string, state: BotState): Promise
const annotation = await BookLibrary.getBookAnnotation(parseInt(bookId));
ctx.reply(annotation.text);
ctx.reply(annotation.text, {
parse_mode: "HTML",
});
});
bot.hears(/^\/a_info_[\d]+$/gm, async (ctx: Context) => {
@@ -159,7 +161,9 @@ export async function createApprovedBot(token: string, state: BotState): Promise
const annotation = await BookLibrary.getAuthorAnnotation(parseInt(authorId));
ctx.reply(annotation.text);
ctx.reply(annotation.text, {
parse_mode: "HTML",
});
});
bot.hears(/^\/a_[\d]+$/gm, async (ctx: Context) => {