Skip to content

extractMessages

extractMessages(payload): IncomingMessage[]

Defined in: src/resources/webhook-core.ts:208

Flattens all inbound messages across entry[].changes[].value for changes whose field is messages. Non-object elements are skipped. Returns an empty array when the payload carries none.

WebhookPayload

IncomingMessage[]

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