@uneiotech/elisa_whatsapp
Version:
Elisa WhatsApp is a library to stable a communication between channels and server.
24 lines (23 loc) • 479 B
TypeScript
export interface IConfig {
url: string;
apiKey: string;
}
export declare type typeOfMessage = "text" | "link";
export interface IMessage {
numberFrom?: string;
numberTo: string;
type: typeOfMessage;
message?: string;
link?: string | undefined;
}
export interface IBodyMaytapi {
to_number: string;
type: string;
message?: string;
text?: string;
}
export interface IResponse {
ok: boolean;
status: number;
message: string;
}