From ae428d8415dab2dfd27dbf6054315d4229cbe599 Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Fri, 6 Feb 2026 12:05:11 +0300 Subject: [PATCH] fix usage of wrong entities if a quote is present --- src/commands/quote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/quote.ts b/src/commands/quote.ts index 655ffd0..dbe39bf 100644 --- a/src/commands/quote.ts +++ b/src/commands/quote.ts @@ -64,7 +64,7 @@ export class Quote extends Command { const quote = quoteRaw.length ? quoteRaw : "…"; - const entities = reply.entities ?? reply.caption_entities ?? []; + const entities = msg.quote ? msg.quote.entities : reply.entities ?? reply.caption_entities ?? []; const png = await renderQuoteCard(msg, quote, reply, entities); await bot.sendPhoto({