// ── Inbound message metadata cache ────────────────────────────────────── // Maps messageId → { participant, participantE164, body, fromMe } so the // outbound adapter can // populate the quote key with the sender JID and preview text even though // the outbound path only receives a bare messageId string.
type QuotedMeta = {
participant?: string;
participantE164?: string;
body?: string;
fromMe?: boolean;
};
type CacheEntry = QuotedMeta & { ts: number };
type QuotedMetaLookup = QuotedMeta & { remoteJid: string };
export function buildQuotedMessageOptions(params: {
messageId?: string | null;
remoteJid?: string | null;
fromMe?: boolean;
participant?: string; /** Original message text — shown in the quote preview bubble. */
messageText?: string;
}): MiscMessageGenerationOptions | undefined { const id = params.messageId?.trim(); const remoteJid = params.remoteJid?.trim(); if (!id || !remoteJid) { return undefined;
} return {
quoted: {
key: {
remoteJid,
id,
fromMe: params.fromMe ?? false,
participant: params.participant,
},
message: { conversation: params.messageText ?? "" },
},
} as MiscMessageGenerationOptions;
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.14Bemerkung:
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.