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.
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.