mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:44:32 +00:00
fix(telegram): avoid nested reply quote misclassification
This commit is contained in:
committed by
Ayaan Zaidi
parent
b430998c2f
commit
582732391a
@@ -229,7 +229,6 @@ export function describeReplyTarget(msg: Message): TelegramReplyTarget | null {
|
|||||||
const externalReply = (msg as Message & { external_reply?: Message }).external_reply;
|
const externalReply = (msg as Message & { external_reply?: Message }).external_reply;
|
||||||
const quoteText =
|
const quoteText =
|
||||||
msg.quote?.text ??
|
msg.quote?.text ??
|
||||||
(reply as (Message & { quote?: { text?: string } }) | undefined)?.quote?.text ??
|
|
||||||
(externalReply as (Message & { quote?: { text?: string } }) | undefined)?.quote?.text;
|
(externalReply as (Message & { quote?: { text?: string } }) | undefined)?.quote?.text;
|
||||||
let body = "";
|
let body = "";
|
||||||
let kind: TelegramReplyTarget["kind"] = "reply";
|
let kind: TelegramReplyTarget["kind"] = "reply";
|
||||||
|
|||||||
Reference in New Issue
Block a user