UNPKG

whatsapp-business

Version:

Node.js connector for the WhatsApp Business APIs with TypeScript support, integration tests and more.

6 lines (5 loc) 544 B
import { Webhook, WebhookEvents } from "../types"; import { Request, Response } from "express"; export declare const webhookHandler: (body: Webhook, { onError, onMessageReceived, onStatusReceived, onTextMessageReceived, }: Omit<WebhookEvents, "onStartListening">) => void; export declare const postWebhookController: (events: WebhookEvents) => (req: Request, res: Response) => Response<any, Record<string, any>>; export declare const getWebhookController: (token: string) => (req: Request, res: Response) => Response<any, Record<string, any>>;