Button Component API object for flow button

Hierarchy (view full)

Constructors

Properties

Constructors

  • Creates a button component for a Template message with flow button.

    Parameters

    • flow_token: string

      Honestly, I don't know what this is, the documentation only says this might be "FLOW_TOKEN" and defaults to "unused".

    • flow_action_data: unknown

      JSON object with the data payload for the first screen.

    Returns FlowComponent

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