Sticker

The structure presented is as follows:

function Stickers(number, linkSticker){
    const data = JSON.stringify({
        "messaging_product": "whatsapp",
        "to": number,
        "type": "sticker",
        "sticker": {
            "link": linkSticker,
        }
    });
    return data;
}

The parameters received are a number and a link to the audio you want to send.

We recommend sending in the following way in the process files:

let answer = dictionaryModule.function();
let model = models.Stickers(answer,number);

If not also in the whatsappModels file:

const linkStickers = "https://yourUrlExample.supabase.co/storage/v1/object/public/files-sticker/sticker.wep";
const info = whatsappModels.Stickers(number, linkStickers);

Última actualización