Messages
Send Sticker Message
POST
/api/v1/chat/send/stickerSend a sticker (base64 webp, or a short mp4 for an animated sticker).
Parameters
- PhonestringRequired
Who gets it: phone number with country code (e.g. 923001234567), or a chat id like …@g.us for a group.
- StickerstringRequired
The sticker as base64 webp, or a short mp4 for an animated sticker.
- PngThumbnailstringOptional
A small PNG preview image, base64.
- MimeTypestringOptional
The sticker type, if it is not in the data URL.
- PackIdstringOptional
Sticker pack id.
- PackNamestringOptional
Sticker pack name.
- PackPublisherstringOptional
Sticker pack publisher.
- EmojisarrayOptional
Emojis that go with the sticker.
- IdstringOptional
Your own id for the message. Leave it out and one is made for you.
- ContextInfoobjectOptional
Reply to a message: StanzaId (the message id) and Participant (who sent it). MentionedJID lists people to mention.
- QuotedMessageobjectOptional
Custom quote preview to show above your reply.
| Name | Type | Required | Description |
|---|---|---|---|
| Phone | string | Yes | Who gets it: phone number with country code (e.g. 923001234567), or a chat id like …@g.us for a group. |
| Sticker | string | Yes | The sticker as base64 webp, or a short mp4 for an animated sticker. |
| PngThumbnail | string | No | A small PNG preview image, base64. |
| MimeType | string | No | The sticker type, if it is not in the data URL. |
| PackId | string | No | Sticker pack id. |
| PackName | string | No | Sticker pack name. |
| PackPublisher | string | No | Sticker pack publisher. |
| Emojis | array | No | Emojis that go with the sticker. |
| Id | string | No | Your own id for the message. Leave it out and one is made for you. |
| ContextInfo | object | No | Reply to a message: StanzaId (the message id) and Participant (who sent it). MentionedJID lists people to mention. |
| QuotedMessage | object | No | Custom quote preview to show above your reply. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/chat/send/sticker" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Phone": "923001234567",
"Sticker": "data:image/webp;base64,UklGR…"
}'Response Example
200 OK
{
"code": 200,
"data": {
"Details": "Sent",
"Id": "90B2F8B13FAC8A9CF6B06E99C7834DC5",
"Timestamp": "2022-04-20T12:49:08-03:00"
},
"success": true
}