Header API object

Constructors

Properties

Constructors

  • Builds a header component for an Interactive message

    Parameters

    • object:
          | string
          | Document
          | Image
          | Video

      The message object for the header

    Returns Header

    If object is a string and is over 60 characters

    If object is a Media and has a caption

Properties

document?: Document

The document of the parameter

image?: Image

The image of the parameter

text?: string

The text of the parameter

type:
    | "text"
    | "document"
    | "image"
    | "video"

The type of the header

video?: Video

The video of the parameter