venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.13k forks source link

Image uploaded but not delivered #1016

Open raghavendra89 opened 10 years ago

raghavendra89 commented 10 years ago

Hi,

I have successfully sent the text message. But not able to send the image.

Here is the debug report:

 <iq from="s.whatsapp.net" id="upload-1413867821-1" type="result">
rx    <duplicate url="https://mmi117.whatsapp.net/d/Am8hqpKWftl6-7wHcHgTCIdcJI-     
 W4QMaixmly_HjRRZo.jpg" size="119100" mimetype="image/jpeg"   
 filehash="r70XWlyUoWuauTWva++e9VmHJvfkIeF/TH/BUdw2mnE=" type="image" width="500" 
 height="366"></duplicate>
rx  </iq>

tx  <message to="91xxxxxxxxxx@s.whatsapp.net" type="media" id="message-1413867821-3"     
t="1413867821">
tx    <x xmlns="jabber:x:event">
tx      <server></server>
tx    </x>
tx    <notify xmlns="urn:xmpp:whatsapp" name="Raghavendra"></notify>
tx    <request xmlns="urn:xmpp:receipts"></request>
tx    <media xmlns="urn:xmpp:whatsapp:mms" type="image" 
url="https://mmi117.whatsapp.net/d/Am8hqpKWftl6-7wHcHgTCIdcJI-W4QMaixmly_HjRRZo.jpg" 
file="Am8hqpKWftl6-7wHcHgTCIdcJI-W4QMaixmly_HjRRZo.jpg" size="119100" 
hash="r70XWlyUoWuauTWva++e9VmHJvfkIeF/TH/BUdw2mnE="> 2960 byte data</media>

tx

You can see that the url is marked as duplicate(I tried to send the same image several times), which means the image is uploaded. But it is not delivered.

Any help is appreciated. Thanks.

eliasjnior commented 10 years ago

Send pollMessage after send this image. Now "we" are here: https://github.com/mgp25/WhatsAPI-Official/