java - How I send animated sticker in whatsapp from my custom keyboard - Stack Overflow

admin2025-04-16  3

so i builded a app that have custom keyboard where i can use to share sticker, i'm able send the non-animated stickers easily but when it come the animated sticker it's not, as from the whastapp documentation about sending stickers i have to add in the whatsapp sticker collection from their i can choose to send the sticker, but when i look gboard and bobble keyboard they are able to share them preety easily just tap and it sended both animated and non animated how?? . i use this mime type "image/webp.wasticker " for non-animated sticker so Is there any workaround for the animated stickers?

so i builded a app that have custom keyboard where i can use to share sticker, i'm able send the non-animated stickers easily but when it come the animated sticker it's not, as from the whastapp documentation about sending stickers i have to add in the whatsapp sticker collection from their i can choose to send the sticker, but when i look gboard and bobble keyboard they are able to share them preety easily just tap and it sended both animated and non animated how?? . i use this mime type "image/webp.wasticker " for non-animated sticker so Is there any workaround for the animated stickers?

Share Improve this question asked Feb 4 at 5:40 Rishabh GuptaRishabh Gupta 551 silver badge7 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

Instead of image/webp.wasticker, they might use a more general MIME type like: image/webp image/gif video/mp4

i got the answer, for the animated webp image it's same mime type "image/webp.wasticker" only catch is you have to change the metadata of that webp that compatible for whatsapp. follow this link to change your animated webp metadata, it just add

pack: 'My Pack', // The pack name
    author: 'Me', // The author name
    type: StickerTypes.FULL, // The sticker type
    categories: ['
转载请注明原文地址:http://www.anycun.com/QandA/1744738681a86924.html