tgalal / yowsup

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

No support for receiving Image messages with yowsup #1394

Closed yniv closed 5 years ago

yniv commented 8 years ago

As i understand now, currently there is no support for receiving image messages with yowsup! after the S40 token change, now we're getting encrypted images. please update here if someone is working on this, or any progress regarding this issue. because without this support now this lib is pretty much useless...

yniv commented 8 years ago

i've seen that @tgalal has commited some changes regarding this in wa16. did someone tried it?

cfenollosa commented 8 years ago

Chat-API has the same problem. Given that yowsup is a port of Chat-API, I wouldn't count on getting that fixed soon: https://github.com/mgp25/Chat-API/issues/1750

mgp25 commented 8 years ago

@cfenollosa image encryption/decryption is already implemented in Chat API and its fully working. I didn't enabled the encryption/decryption to groups yet, but its working and its just adding 1 more line of code.

Probably in about weeks (no ETA), we'll release protocol 2.0 with full document support and more features. I would recommend to translate to python what is already done in Chat API.

Regards

stevie86 commented 8 years ago

Thanks, receiving Images works now!

yniv commented 8 years ago

@stevie86 how does it work? what have you did?

antoniespinosa commented 8 years ago

@stevie86 What have you did?

cgraefe commented 8 years ago

@stevie86 Please share with us if you got encrypted images to work.

stevie86 commented 8 years ago

Sorry, it doesn't work after all :(

jlguardi commented 8 years ago

I've working version in jlguardi/master (at least I downloaded 5 hours ago several encrypted/unencrypted images). Could you check if you have this code working? Could you post logs?

cgraefe commented 8 years ago

@jlguardi I'm already on it, looks promising so far. Thanks for you efforts!

jlguardi commented 8 years ago

Remembe that message.getMediaContent() returns unencrypted (if required) image. If you use cli, it is made internally.

cgraefe commented 8 years ago

@jlguardi Thanks for the reminder, I would have missed that. Downloading and decrypting images does indeed work well on you master branch. I seem to be having problems with audio and location messages now though. I'll investigate further and will open separate issues on your fork if need be and you don't mind.

SpEcHiDe commented 6 years ago

Hi. Could you please explain how to decrypt the downloaded image?

tgalal commented 5 years ago

Fixed by 5ac5c3c1f056b389d3b4a60416bcaa264cf9bdb1