Interactive API object

Hierarchy

Constructors

Properties

Methods

Constructors

  • Create an Interactive object for the API

    Parameters

    • action: InteractiveAction

      The action component of the interactive message

    • Optional body: Body

      The body component of the interactive message

    • Optional header: Header

      The header component of the interactive message

    • Optional footer: Footer

      The footer component of the interactive message

    Returns Interactive

    Throws

    If body is not provided, unless action is an ActionProduct with a single product

    Throws

    If header is provided for an ActionProduct with a single product

    Throws

    If header of type text is not provided for an ActionProduct with a product list

    Throws

    If header is not of type text, unless action is an ActionButtons

Properties

The action component of the interactive message

body?: Body

The body component of the interactive message

footer?: Footer

The footer component of the interactive message

header?: Header

The header component of the interactive message

type: "list" | "button" | "catalog_message" | "product" | "product_list"

The type of the interactive message

Methods

Generated using TypeDoc