#Send WEP / GIF files as animated Stricker
7 messages · Page 1 of 1 (latest)
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
Question @pale island
Where does Util come from?
is it a custom class or part of whatsapp-web.js