tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.06k stars 2.23k forks source link

Send media not working #3023

Open twilliamftv opened 3 years ago

twilliamftv commented 3 years ago

Hi, I need to send media files (audio, video, image, but it doesn't working.

I don't have the new enc_media label, anyone has it?

Thanks a lot

lovethiscode commented 3 years ago

@twilliamftv

Due to the update of WhatsApp version, the previous method of sending image should be invalid and needs to be modified

1) Upload media files to WhatsApp's CDN server

2) Send media messages via IQ Node. Here's what I did, find public String SendMedia(String jid, String path, String mediaType) method

https://github.com/lovethiscode/Gorgeous-Whatsapp/blob/main/Gorgeous/src/main/java/GorgeousEngine.java