Button Component API object for quick reply buttons

Hierarchy (view full)

Constructors

Properties

Constructors

  • Creates a button component for a Template message with quick reply buttons.

    Parameters

    • parameter: string

      Parameter for the component.

    Returns PayloadComponent

    If parameter is an empty string.

Properties

index: number = NaN

The index of the component (assigned after calling _build)

parameters: [ButtonParameter]

The parameter of the component

sub_type:
    | "flow"
    | "url"
    | "quick_reply"
    | "catalog"
    | "mpm"
    | "copy_code"

The subtype of the component

type: "button" = "button"

The type of the component