UNPKG

@acadix/setup

Version:

Acadix Learning Management System backend application project setup

69 lines (68 loc) 2.4 kB
import { GraphInterface, MessageInterface, ParserInterface } from "../interfaces"; export default class WhatsappCloud { private env; private readonly logger; private readonly whatsappConfig; private readonly baseUrl; constructor(env: any); apiRequest({ url, method, body }: GraphInterface): Promise<any>; parseMessage(requestBody: any): ParserInterface; sendText({ message, recipient }: MessageInterface): Promise<any>; markMessageAsRead(messageId: string): Promise<any>; sendSimpleButtons({ recipient, message, listOfButtons, }: MessageInterface): Promise<any>; sendRadioButtons({ recipient, headerText, bodyText, footerText, listOfSections, }: MessageInterface): Promise<any>; sendImage({ recipient, caption, url }: MessageInterface): Promise<{ response: any; body: { messaging_product: string; recipient_type: string; to: string; type: string; image: { caption: string; link: string; }; }; }>; sendVideo({ recipient, caption, url }: MessageInterface): Promise<{ response: any; body: { messaging_product: string; recipient_type: string; to: string; type: string; video: { caption: string; link: string; }; }; }>; sendAudio({ recipient, caption, url }: MessageInterface): Promise<{ response: any; body: { messaging_product: string; recipient_type: string; to: string; type: string; audio: { caption: string; link: string; }; }; }>; sendDocument({ recipient, caption, url }: MessageInterface): Promise<{ response: any; body: { messaging_product: string; recipient_type: string; to: string; type: string; document: { caption: string; link: string; }; }; }>; sendLocation({ recipient, latitude, longitude, name, address, }: MessageInterface): Promise<any>; sendContact({ recipient, contactProfile }: MessageInterface): Promise<any>; }