Skip to content

extractStatuses

extractStatuses(payload): MessageStatus[]

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

Flattens all message status updates across entry[].changes[].value for changes whose field is messages. Status values under other fields, such as calls, are not message statuses and are ignored. Non-object elements are skipped. Returns an empty array when the payload carries none.

WebhookPayload

MessageStatus[]

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