venomous0x / WhatsAPI

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

SendGetStatus() does not work #470

Closed PWegner closed 11 years ago

PWegner commented 11 years ago

Hi,

I am tryting to get the status of a person - but sendGetStatus() does not work for me. The onGetStatus callback function returns the status for every number - and even in the debug logs is only this status shown.

The returned status is "Hey there, I am using WhatsApp!", which is the status of the client. May be I am sending a wrong jid as parameter? I am just sending the phone number als jid - is this wrong?

xX7 commented 11 years ago

jid = contrycode + phonenumber (without 0 at the begining ) + @s.whatsapp.net

example:

countrycode: 49 (Germany) Phonenuber: 01578 1231231

jid: 4915781231231@s.whatsapp.net

mgp25 commented 11 years ago

It also happens to me, i tried this:

http://pastebin.com/DpXwBhWp

So... i dont know exactly where is the problem, it seems like we are writing a wrong JID :/

[edited]

shirioko commented 11 years ago

The problem is that no one around here appears to know how to properly format code. ffs

xX7 commented 11 years ago

@mgp25 sending to "s.us" is group related..

shirioko commented 11 years ago

Sending to "@g.us" is group related. s.us is status server

xX7 commented 11 years ago

Yes right, sorry just saw the ".us" and thought of group server.. :P

shirioko commented 11 years ago

Looks like the method is deprecated. You'll need to use contact sync to get user status.

jeky-- commented 11 years ago

I had the same feeling, the data retrived from this method are wrong in most of case!