Both sendFile() and sendImage() sends a static GIF.
In WhatsApp, gifs are treated as videos iirc. This will need some work. Good suggestion.
did you try to use the sendGif function ?
@marcelocecin I made it. It doesn't work as expected yet. It needs more investigation. Let me know if you've got any other ideas.
Thanks for that @marcelocecin
GIFs are sent as video files. With a few gif attributes.
So maybe sulla-hotfix should autodetect gif files then convert to MP4 using:
https://www.npmjs.com/package/videofy
The only issue which I've found, while working on the existing (not-functioning) sendGif function, is that the sendMedia method does not allow overriding other attributes. So there must be a different method in the WhatsApp web code that allows overriding media attributes.
One step closer.
has anyone actually tried to send a gif on whatsapp web? It doesn't actually support sending gifs!
@marcelocecin @Douglas12ds I figured it out. New version on it's way.
@marcelocecin @Douglas12ds Happy Gif-ing! https://github.com/smashah/sulla#sending-gifs
Most helpful comment
@marcelocecin @Douglas12ds Happy Gif-ing! https://github.com/smashah/sulla#sending-gifs