whatsapp-api-client
Version:
Whatsapp Business API Official Client
31 lines • 948 B
TypeScript
import { SendMessageRequest, SendMessageWithTemplateRequest } from "./types/message";
import { Options } from "./types/options";
/**
* Send a message with a template to a WhatsApp number.
*/
export declare const sendMessageWithTemplate: (options: Options) => (props: SendMessageWithTemplateRequest) => Promise<{
messaging_product: "whatsapp";
contacts: Array<{
input: string;
wa_id: string;
}>;
messages: Array<{
id: string;
message_status: string;
}>;
}>;
/**
* Send a message - only work if receiver has already messaged the sender first for last 24 hours
*/
export declare const sendMessage: (options: Options) => (props: SendMessageRequest) => Promise<{
messaging_product: "whatsapp";
contacts: Array<{
input: string;
wa_id: string;
}>;
messages: Array<{
id: string;
message_status: string;
}>;
}>;
//# sourceMappingURL=message.d.ts.map