Skip to content

WebhookHandlerFn

WebhookHandlerFn<N> = (event) => void | Promise<void>

Defined in: src/resources/webhook-handler-core.ts:42

A function registered with WebhookHandlerApi.on.

N extends WebhookEventName

WebhookEventMap[N]

void | Promise<void>

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