Skip to Content

whatsapp-mcp


whatsapp-mcp / webhook/payload-types / InboundMessageNormalised

Interface: InboundMessageNormalised

Defined in: src/webhook/payload-types.ts:7 

An inbound user message after normalisation.

Properties

body

readonly body: string | null;

Defined in: src/webhook/payload-types.ts:22 

Plaintext body for text/captions; emoji for reactions; reply title for interactive.


contactProfileName

readonly contactProfileName: string | null;

Defined in: src/webhook/payload-types.ts:18 

Display name from Meta’s contacts[].profile.name, if present.


contactWaId

readonly contactWaId: string;

Defined in: src/webhook/payload-types.ts:16 

Sender wa_id (E.164 without leading +).


eventId

readonly eventId: string;

Defined in: src/webhook/payload-types.ts:10 

Globally-unique idempotency key derived from envelope path + wamid.


kind

readonly kind: "inbound_message";

Defined in: src/webhook/payload-types.ts:8 


messageType

readonly messageType: string;

Defined in: src/webhook/payload-types.ts:20 

text, image, document, audio, video, sticker, reaction, interactive, unknown.


payload

readonly payload: Record<string, unknown>;

Defined in: src/webhook/payload-types.ts:24 

Normalised body for persistence into messages.payload.


phoneNumberId

readonly phoneNumberId: string;

Defined in: src/webhook/payload-types.ts:12 

Meta wa_phone_number_id from envelope metadata — not our internal uuid.


replyToWamid

readonly replyToWamid: string | null;

Defined in: src/webhook/payload-types.ts:26 

Reply context: the wamid of the message being replied to, if any.


ts

readonly ts: Date | null;

Defined in: src/webhook/payload-types.ts:28 

Meta event time. Unix seconds from the inbound payload, decoded to Date.


waMessageId

readonly waMessageId: string;

Defined in: src/webhook/payload-types.ts:14 

Meta wamid.