tgalal / yowsup

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

Not send image or video? #3050

Open guilhenfsu opened 3 years ago

guilhenfsu commented 3 years ago

I've been using yowsup-cli for a week, and I can send text messages perfectly ...

But I can't send images or videos ...

Can someone help me? had any updates?

I already tried a change from encr_media to encr_upload, but it still doesn't work ...

ben221199 commented 3 years ago

Duplicate of https://github.com/tgalal/yowsup/issues/3023.

guilhenfsu commented 3 years ago

I read and did ... and nothing ..

still with error ... nothing returns ...

`yowsup-cli  v3.2.0
yowsup      v3.2.3

Copyright (c) 2012-2019 Tarek Galal
http://www.openwhatsapp.org

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate

Yowsup Cli client
==================
Type /help for available commands

[offline]:/L
I 2021-02-10 22:42:12,819 yowsup.layers.network.layer - Connecting to e11.whatsapp.net:443
Auth: Logged in!
[connected]:/video send xxx "/Users/tato/whatsapp/run.mp4"
[connected]:/video send xxx "/Users/tato/whatsapp/run.mp4"
[connected]:/video send xxx "/Users/tato/whatsapp/run.mp4"
[connected]:Iq:
ID: 4
Type: result
from: xxxx@s.whatsapp.net

Iq:
ID: 5
Type: result
from: xxxx@s.whatsapp.net
`
kasru commented 3 years ago

@guilhenfsu Where get correct working "Yowsup Cli client" ?

lovethiscode commented 3 years ago

@anantn

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

Upload media files to WhatsApp's CDN server

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