whatsapp-api-js - v5.2.0
    Preparing search index...

    Type Alias ButtonParameter

    type ButtonParameter = {
        action?: XOR<
            {
                sections?: AtLeastOne<ProductSection>;
                thumbnail_product_retailer_id: string;
            },
            { flow_action_data: unknown; flow_token: string },
        >;
        coupon_code?: string;
        payload?: string;
        text?: string;
        type: "text" | "payload" | "action" | "coupon_code";
    }
    Index

    Properties

    action?: XOR<
        {
            sections?: AtLeastOne<ProductSection>;
            thumbnail_product_retailer_id: string;
        },
        { flow_action_data: unknown; flow_token: string },
    >

    The action of the button

    coupon_code?: string

    The coupon's code of the button

    payload?: string

    The payload of the button

    text?: string

    The text of the button

    type: "text" | "payload" | "action" | "coupon_code"

    The type of the button