whatsapp-api
                                
                                 whatsapp-api copied to clipboard
                                
                                    whatsapp-api copied to clipboard
                            
                            
                            
                        Add ability to send stickers
I can see that we can easily send stickers using WhatsApp Web, I'd be grateful if you could add a method to send stickers (which is different from sending PNG image as sending PNGs has no transparency where sending stickers has)
You should be able to do it already by passing the option sendMediaAsSticker when you send your message.
https://docs.wwebjs.dev/global.html#MessageSendOptions
Give it a try and let us know if it works!
it didn't work, I've added this option to the payload of {{baseUrl}}/client/sendMessage/:sessionId let me know if I should another API endpoint to send stickers @chrishubert
Don't forget to use sendMediaAsSticker. Pass it in options.
Ref: https://docs.wwebjs.dev/global.html#MessageSendOptions
I can see no options in that request {{baseUrl}}/client/sendMessage/:sessionId I'm using this repository as API, all retries failed, I didn't find anything helpful in the Swagger Documentation :(
I can see no
optionsin that request{{baseUrl}}/client/sendMessage/:sessionIdI'm using this repository as API, all retries failed, I didn't find anything helpful in the Swagger Documentation :(
You need to pass it, even if it's not mentioned in Swagger.
Thanks it works now, I was confused by the attribute name, this is the request if anyone wants to know about it:
{
    "chatId": "*****@c.us",
    "contentType": "MessageMediaFromURL",
    "content": "https://**********/img.png",
    "options": {
        "sendMediaAsSticker": true
    }
}
Good to know!