From 4bd8025e390699cb0f3528f189685866d0e6bcb5 Mon Sep 17 00:00:00 2001 From: Kurbanov Bulat Date: Mon, 3 Jan 2022 13:04:13 +0300 Subject: [PATCH] Fix annotation sending --- src/bots/factory/bots/approved/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bots/factory/bots/approved/index.ts b/src/bots/factory/bots/approved/index.ts index 76abd4b..523c87c 100644 --- a/src/bots/factory/bots/approved/index.ts +++ b/src/bots/factory/bots/approved/index.ts @@ -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) => {