Actions
Send a Sticker Message
Actions
Send a Sticker Message
Post a sticker message to WhatsApp
Send WhatsApp sticker messages from your WhatsApp Business Account.
Params
keyrequired
string
A unique string. Please see the Keys and Resumability doc for more info.
messagerequired
object
fromId
string
The id of the phone number you want to send the message from. You can find this in the your WhatsApp Business dashboard. Note, this is not the phone number.
to
string
The phone number you want to send the message to.
urlrequired
string
The url of the image to be sent. Please note that only webp files will work for stickers.
caption
string
Optional caption that sits below the video
isReplyTo
string
Optionally, add the id of the message you want to reply to. It will appear as a reply in the WhatsApp chat.
Response
contacts
object
The contact information of who received the message
messages
object
An array of message ids that were sent
messaging_product
string
Always whatsapp
Example Workflows
Notify Slack on New GitHub Star
import { Trigger } from "@trigger.dev/sdk";
import { events, sendVideo } from "@trigger.dev/whatsapp";
new Trigger({
id: "demo",
on: events.messageEvent({
accountId: "<account_id>",
}),
run: async (event, ctx) => {
//send an automatic sticker to the message
const stickerResponse = await sendSticker("stick", {
fromId: event.metadata.phone_number_id,
to: event.message.from,
url: "https://www.tyntec.com/sites/default/files/2020-07/tyntec_rocket_sticker_512px_001_.webp",
});
},
}).listen();