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;
    }

    The message to reply to

    • message_id: string

      The message id to reply to

  • messaging_product: "whatsapp"

    The messaging product

  • Optional recipient_type?: "individual"

    Undocumented, optional (the framework doesn't use it)

  • to: string

    The user's phone number

Generated using TypeDoc