Send Message

You can direct the bot the way you want it to return to the user.

Sending Text Messages

this.sendMessage(message: string) : WABA

Sending Button Messages

type TButton = {
	id: string;
	title: string;
};

await this.sendButtonMessage(
		header: string,
		footer: string,
		message: string,
		buttons: TButton[],
	):WABA

Sending List Messages

type TRow = {
	id: string;
	title: string;
	description: string;
};

await this.sendListMessage(
	header: string,
	footer: string,
	message: string,
	buttonTitle: string,
	rows: TRow[],
);

Sending List Messages With Section

type TSection = {
	title: string;
	rows: TRow[];
};

type TRow = {
	id: string;
	title: string;
	description: string;
};

await this.sendListMessageWithSection(
	header: string,
	footer: string,
	message: string,
	buttonTitle: string,
	sections: TSection[],
);

Sending Image

await sendImageWithUrl(filename: string, url: string) : WABA

Sending Document

sendDocumentWithUrl(filename: string, url: string)

Last updated