Wa-automate-nodejs: How to send GIFs?

Created on 23 Dec 2019  路  9Comments  路  Source: open-wa/wa-automate-nodejs

Both sendFile() and sendImage() sends a static GIF.

Most helpful comment

@marcelocecin @Douglas12ds Happy Gif-ing! https://github.com/smashah/sulla#sending-gifs

All 9 comments

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

Based on:
https://github.com/sigalor/whatsapp-web-reveng/blob/42023d191e54fe4278c0ec2ed0076ac8741b5cc3/doc/spec/def.proto#L206

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

renato-macedo picture renato-macedo  路  6Comments

sandro-salles picture sandro-salles  路  4Comments

feliperaul picture feliperaul  路  5Comments

phantom-limb picture phantom-limb  路  5Comments

DeLuca92 picture DeLuca92  路  5Comments