mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Fix annotation sending
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user