tgalal / yowsup

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

Does not send image #2016

Closed prajeshmadhavi closed 7 years ago

prajeshmadhavi commented 7 years ago

I am able to login to command line client. /L shows Connected /image send XXXXX /root/test/sample.jpg shows Sent. but image is not delivered to target number, I am not able to figure out even after checking the debug log.

Have anybody faced such issue before?

leogaletti commented 7 years ago

Hi, I'm going through the same thing too.

When I send to an android device the image arrives however for an iphone does not arrive, is there any problem?

Sorry for english, google translate

fabioduarteleme commented 7 years ago

I'm the same problem. Some iphone's device receive the image other not.

jlguardi commented 7 years ago

Please, try with jpeg and also with png images.

leogaletti commented 7 years ago

@jlguardi I tried with jpeg and png but neither worked I tried to send a video and audio but it returns me this error: AttributeError: type object 'DownloadableMediaMessageProtocolEntity' has no attribute 'fromFilePath'

langioletto commented 7 years ago

I have the same problem

I updated whatsapp yesterday (iphone) to version 2.17.20

And now images sent by the bot do not arrive anymore

Same for geolocation

Aragur commented 7 years ago

Same for newest Android Version

langioletto commented 7 years ago

How can you solve it?

jlguardi commented 7 years ago

Could you provide debug logs with receipt, ack and read entities?

Aragur commented 7 years ago

All looking normal, nothing fails. But WhatsApp App isn't recieving anything.

langioletto commented 7 years ago

Ack is not received when you send an image, because the recipient receives nothing

As if the message was not sent

leogaletti commented 7 years ago

@AragurDEV @langioletto The same happens to me, I do not get ack because the application did not receive anything. The log is perfect, I executed the example with -d and everything is normal

langioletto commented 7 years ago

@tgalal

I tried with iPhone and WhatsApp 2.17.7 and everything works regularly.

The image and position sent by the bot are received regularly.

The problem is with the latest versions of whatsapp released a couple of days ago

leogaletti commented 7 years ago

With me just messages are coming in iphone version 2.17.20

jlguardi commented 7 years ago

You said that official app receives nothing. How do you know? Probably it receives an invalid message and discards it.

leogaletti commented 7 years ago

@jlguardi And how can we proceed? What can we do?

pabloruan0710 commented 7 years ago

debug:

debugfile.txt

fabioduarteleme commented 7 years ago

Guys, the current version (2.17.20) of whatsapp for iphone has changed the photo structure (I think), as it will allow grouping of images in the chat. Should be why it gives error when sending photo to whatsapp on iphone and android works normally. https://goo.gl/vVmpM5

The message are coming, but the images not. Any solution about this?

langioletto commented 7 years ago

If you update whatzapp on android does not work anymore there

Geolocation also does not work!!!

Not just the pictures!!

leogaletti commented 7 years ago

What is your version of whatsapp on android? Because my version is up to date and working, I even opened the play store to see if it had an update

fabioduarteleme commented 7 years ago

A friend of Mine tryed on Iphone (whatsapp version 2.17.11) and works. But 6 Iphones with 2.17.20 version dont receive the image. Only text.

langioletto commented 7 years ago

WhatsApp 2.17.7 works

leogaletti commented 7 years ago

WhatsApp 2.17.146 It's my version in Android

fabioduarteleme commented 7 years ago

@langioletto do you mean about the android ou iphone version? And @leogaletti thats version is work on android?

leogaletti commented 7 years ago

This version is working on Android

langioletto commented 7 years ago

https://github.com/tgalal/yowsup/issues/2016#issuecomment-297167661

leogaletti commented 7 years ago

my debug, send to iphone in version 2.17.20:

debug.txt

Aragur commented 7 years ago

So on the latest Android Beta 2.17.160 this feature is also not working.

dragoncool commented 7 years ago

I've been sending text only (decrypted) messages and it does not receive by Iphone Whatsapp version 2.17.20? Is there any solution to this? Appreciate if anyone could kindly share the codes if there is a solution to this issue.

fwmarcel commented 7 years ago

Hey guys. I have tested that this error is only there when u use this Parameter "-M" Without it works only for IOS. For Android i get the Message "Waiting for this Message..."

leogaletti commented 7 years ago

I updated my whatsapp to version 2.17.160 (android) and now it only works the messages. Any solution?

langioletto commented 7 years ago

@fwmarcel

Where to remove parameter M?

fabioduarteleme commented 7 years ago

@fwmarcel, here dont work without the "-M" parameter. Dont receive message on Android or iOS (whatsapp updated with last version)

langioletto commented 7 years ago

IOS

If I kill whatsapp and send a picture from BOT I get the notification that I have received a new image

But when I open whatsapp in chat there is no new image

TRY

Kill whatsapp

/image send 44xxxxxxxxxxx /root/image.jpg

MR-Research commented 7 years ago

How can we figure out the possibly new message protocol? it seems to only affect multimedia messages, text seems to be fine, so it doesn't seem to be a complete overhaul of the protocol communication or structure EDIT: the activity events seems to indicate the client reports the message as seen, could be that or whatsapp server doing it, but it seems to me that the message gets to the client and then it even tries to display it, but the incorrect structure causes it to not show it.

mniak commented 7 years ago

The exact same thing here. The notification comes but there is no image at all. Using iPhone.

mniak commented 7 years ago

@CantuOSS maybe the structure for a received message is the same of a sent. So, we could try log these messages and compare what's different.

mniak commented 7 years ago

This is the message the library is sending:

<message type="media" id="1234" to="...@s.whatsapp.net">
    <media type="image" mimetype="i" filehash="..." url="https://..." size="..." file="img.png" encoding="raw" width="100" height="100">
        ...binary data...
    </media>
</message>

And this is the message when an image is received:

<message from="...@s.whatsapp.net" type="media" id="1234" t="5678" notify="Sender Name">
    <enc mediatype="image" v="2" type="msg">
        ...binary data...
    </enc>
</message>

I'll try to tweak and send messages in this format and what happens next.

MR-Research commented 7 years ago

@mniak I was thinking the same thing, i'll try to send messages with the new iOS client and check the recieved structure and post it when i can

fwmarcel commented 7 years ago

@mniak @CantuOSS please test some group messages with the new iOS and Android Client. I cant receive messages from yowsup client in group. In normal chats i can receive it. I use yowsup from console and start it with a python script without the Parameter -M. When i use it with this Parameter the iOS client recieve nothing.

victorgt26 commented 7 years ago

This problem occurs with the latest version of Whatsapp, in IOS and Android. Any solution?

MR-Research commented 7 years ago

@victorgt26 we are trying to figure out the changes in the media messsaging structure. Until we can figure out the new structure there is no way to send other than text messages

fwmarcel commented 7 years ago

@CantuOSS normal text messages in groups arent working now.

MR-Research commented 7 years ago

@fwmarcel ok, didn't know that, individual text messages are working tho

fwmarcel commented 7 years ago

@CantuOSS yeah. Normal private text messages are working, but text messages in groups not

mniak commented 7 years ago

My pull request above enables echoing IMAGE messages.

Simonwcm commented 7 years ago

i still can't display the message under updated whatsapp client.

settiseb2711 commented 7 years ago

please help me the same problem. the image send and dont receive in whatsapp version 2.17.19 and post.

victorgt26 commented 7 years ago

same problem!!! please help

victorgt26 commented 7 years ago

@CantuOSS Is there any news regarding the solution of this problem?

stejesh commented 7 years ago

facing same issue, yowsup says image is sent.. but not received on the recipient side