Sticker API component

Hierarchy (view full)

Constructors

Properties

Constructors

  • Create a Sticker object for the API

    Parameters

    • sticker: string

      The sticker file's link

    • isItAnID: boolean = false

      Whether sticker is an id (true) or a link (false)

    Returns Sticker

    import { Sticker } from "whatsapp-api-js/messages";

    const sticker_message = new Sticker("https://www.example.com/sticker.webp");

    const sticker_id_message = new Sticker("12345678", true);

Properties

id?: string

The id of the media

link?: string

The link of the media