Sticker API component
Create a Sticker object for the API
The sticker file's link
Whether sticker is an id (true) or a link (false)
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); Copy
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);
Optional
Readonly
The id of the media
The link of the media
Sticker API component