UNPKG

whatsapp-api-client

Version:

Whatsapp Business API Official Client

25 lines 685 B
export type SendMessageMandatoryFields = { phoneNumberId: string; to: string; }; type SendMessageTemplateComponents = { type: "body" | "button"; sub_type?: string; index?: number; parameters: Array<{ type: "text" | "payload"; text: string; payload?: string; }>; }; export type SendMessageWithTemplateRequest = SendMessageMandatoryFields & { templateName: string; templateLanguageCode: string; templateParameters?: Array<SendMessageTemplateComponents>; }; export type SendMessageRequest = SendMessageMandatoryFields & { text: string; context_message_id?: string; }; export {}; //# sourceMappingURL=message.d.ts.map