Interactive API object

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Create an Interactive object for the API

    Parameters

    Returns Interactive

    Throws

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

    Throws

    If header is provided for an ActionCatalog with a single product

    Throws

    If header of type text is not provided for an ActionCatalog 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: string

The type of the interactive message

Accessors

Methods

  • Internal

    The message built as a string. In most cases it's just JSON.stringify(this)

    Returns string

Generated using TypeDoc