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

    Class Sticker

    Sticker API component

    Hierarchy (View Summary)

    Index

    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