#Send WEP / GIF files as animated Stricker

7 messages · Page 1 of 1 (latest)

stark slate
#

I'm attempting to send a gif or video as an animated sticker but am unsure whether this is doable.

pale island
#

sendMessage(sticker,null, { sendMediaAsSticker: true } )

#

do note you cannot bypass whatsapp restrictions, so your video must be 512x512 10fps

#

you can convert your video using Utils

#

const myVideo = MessageMedia.fromFilePath("/path/to/video")

const mySticker = await Util.convertVideoToWebpSticker(myVideo)

client.sendMessage(mySticker,null, { sendMediaAsSticker: true } )

#

requires ffmpeg-fluent installed

lofty pelican
#

Question @pale island
Where does Util come from?
is it a custom class or part of whatsapp-web.js