whatsapp-api-js - v5.2.0
    Preparing search index...

    Class ActionList

    Action API object

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Constructors

    • Builds an action component for an Interactive message Required if interactive type is "list"

      Parameters

      • button: string

        Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Maximum length: 20 characters.

      • ...sections: AtLeastOne<ListSection>

        Sections of the list

      Returns ActionList

      If button is an empty string

      If button is over 20 characters

      If more than 10 sections are provided

      If more than 1 section is provided and at least one doesn't have a title

    Properties

    button: string

    The button text

    sections: ListSection[]

    The sections of the action