Skip to content

InteractiveIncomingMessage

Defined in: src/types/webhooks.ts:226

The selection payload of an interactive reply.

  • IncomingMessageBase

optional context?: WebhookMessageContext

Defined in: src/types/webhooks.ts:115

Reply context when this message references a previous message.

IncomingMessageBase.context


optional errors?: WebhookMessageError[]

Defined in: src/types/webhooks.ts:119

Errors Meta attached to the message, e.g. on unsupported messages.

IncomingMessageBase.errors


from: string

Defined in: src/types/webhooks.ts:103

The wa_id of the sender. Meta may omit it when the sender has enabled usernames and no phone number can be shared; use from_user_id then.

IncomingMessageBase.from


optional from_parent_user_id?: string

Defined in: src/types/webhooks.ts:107

The sender’s parent BSUID, only present when parent BSUIDs are enabled.

IncomingMessageBase.from_parent_user_id


optional from_user_id?: string

Defined in: src/types/webhooks.ts:105

The sender’s business-scoped user ID (BSUID).

IncomingMessageBase.from_user_id


optional group_id?: string

Defined in: src/types/webhooks.ts:109

The group ID, when the message was sent in a group.

IncomingMessageBase.group_id


id: string

Defined in: src/types/webhooks.ts:111

The WhatsApp message ID (WAMID) of this message.

IncomingMessageBase.id


interactive: object

Defined in: src/types/webhooks.ts:228

optional button_reply?: object

Present when type is button_reply.

id: string

title: string

optional call_permission_reply?: object

Present when type is call_permission_reply, the user’s answer to a call permission request.

call_permission_reply.expiration_timestamp?
Section titled “call_permission_reply.expiration_timestamp?”

optional expiration_timestamp?: string | number

response: string

optional response_source?: string

optional list_reply?: object

Present when type is list_reply.

optional description?: string

id: string

title: string

optional nfm_reply?: InteractiveNfmReply

Present when type is nfm_reply (e.g. an address-message submission).

optional product?: object

Present when type is product, a reply about a product from a product message.

optional currency_code?: string

optional description?: string

optional price_amount?: string | number

retailer_id: string

optional sale_price_amount?: string | number

optional title?: string

optional url?: string

type: "product" | "button_reply" | "list_reply" | "nfm_reply" | "call_permission_reply"

The kind of interactive reply received.


optional referral?: WebhookMessageReferral

Defined in: src/types/webhooks.ts:117

Click to WhatsApp ad attribution, only present when sent via an ad.

IncomingMessageBase.referral


timestamp: string

Defined in: src/types/webhooks.ts:113

Unix epoch seconds (as a string) when the message was sent.

IncomingMessageBase.timestamp


type: "interactive"

Defined in: src/types/webhooks.ts:227

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.