UNPKG

@codebucket/whatsapp

Version:

A reusable WhatsApp Business API client with template and non-template support, webhook handling, pluggable storage, and text sanitization

11 lines (10 loc) 519 B
import { MessageStore, SendMessageOptions, WebhookMessage, WebhookStatus } from '../types'; /** * A MessageStore that simply logs every call. * Useful for dev / debugging / local testing. */ export declare class LogMessageStore implements MessageStore { saveIncomingMessage(accountId: string, msg: WebhookMessage): Promise<void>; saveOutgoingMessage(accountId: string, opts: SendMessageOptions, response: any): Promise<void>; saveMessageStatus(accountId: string, status: WebhookStatus): Promise<void>; }