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

    Class LTOComponent

    Components API object

    Implements

    Index

    Constructors

    Properties

    Constructors

    • Builds a limited-time offer component for a Template message

      Parameters

      • expiration: number

        Offer code expiration time as a UNIX timestamp in milliseconds

      Returns LTOComponent

      If expiration is negative

    Properties

    parameters: [
        {
            limited_time_offer: { expiration_time_ms: number };
            type: "limited_time_offer";
        },
    ]

    The parameters of the component

    type: "limited_time_offer"

    The type of the component