fix usage of wrong entities if a quote is present

This commit is contained in:
2026-02-06 12:05:11 +03:00
parent 9ba3d81a21
commit ae428d8415
+1 -1
View File
@@ -64,7 +64,7 @@ export class Quote extends Command {
const quote = quoteRaw.length ? quoteRaw : "…"; 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); const png = await renderQuoteCard(msg, quote, reply, entities);
await bot.sendPhoto({ await bot.sendPhoto({