Type alias ClientMessageRequest
ClientMessageRequest: {
context?: {
message_id: string;
};
messaging_product: "whatsapp";
recipient_type?: "individual";
to: string;
} & ({
text?: string;
type: "text";
} | {
audio?: string;
type: "audio";
} | {
document?: string;
type: "document";
} | {
image?: string;
type: "image";
} | {
sticker?: string;
type: "sticker";
} | {
type: "video";
video?: string;
} | {
location?: string;
type: "location";
} | {
contacts?: string;
type: "contacts";
} | {
interactive?: string;
type: "interactive";
} | {
template?: string;
type: "template";
} | {
reaction?: string;
type: "reaction";
})
Type declaration
-
Optional
context?: {
message_id: string;
}
-
messaging_product: "whatsapp"
-
Optional
recipient_type?: "individual"
-
to: string
The message to reply to