fix(telegram): avoid nested reply quote misclassification

This commit is contained in:
Denis Rybnikov
2026-02-09 00:05:29 +01:00
committed by Ayaan Zaidi
parent b430998c2f
commit 582732391a

View File

@@ -229,7 +229,6 @@ export function describeReplyTarget(msg: Message): TelegramReplyTarget | null {
const externalReply = (msg as Message & { external_reply?: Message }).external_reply;
const quoteText =
msg.quote?.text ??
(reply as (Message & { quote?: { text?: string } }) | undefined)?.quote?.text ??
(externalReply as (Message & { quote?: { text?: string } }) | undefined)?.quote?.text;
let body = "";
let kind: TelegramReplyTarget["kind"] = "reply";