Skip to main content

emit_message_update

Function emit_message_update 

Source
pub async fn emit_message_update(
    chat_id: &str,
    old_id: &str,
    message: &mut Message,
)
Expand description

Emit message_update with the quoted-reply context re-resolved first.

STATE holds messages in compact form, which keeps only the has an attachment bool — replied_to_attachment_extension is dropped on the way back out. Every update path re-reads its message from STATE, so emitting one straight from RAM downgrades the quoted attachment’s label (“GIF Animation” becomes a generic “Attachment”) and the renderer never retries.