tgalal / yowsup

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

use --sync 6xxxxxxxx but the result not is real, continues to operate this option? #170

Closed ururita closed 9 years ago

ururita commented 10 years ago

use the instruccion python yowsup-cli.py -c config.example --sync 6xxxxxxxx the result is:

c: [#u'p': u'6xxxxxxxx', u'w': 0, u'n': u'346xxxxxxxx'}]

but not is correct , the phone '6xxxxxxxx' if it has a whatsapp

Contact-Sync-API V2 is working?

thanks

shirioko commented 10 years ago

You need to format the number as "+{cc}{number}", so e.g. "+31650568134"

ururita commented 10 years ago

python yowsup-cli.py -c config.example --sync +346xxxxxxxx

c: [#u'p': u'+346xxxxxxxx', u'w': 0, u'n': u'346xxxxxxxx'}]

Not is corret

But THANKS

mrtass commented 10 years ago

is contact sync working ? i'm trying with registered whatsapp number but the result is :

C:\yowsup>python yowsup-cli -cconfig --sync +97155700xxxx Detected cc: 971 Syncing 1 contacts c: [{u'p': u'+97155700xxxx', u'w': 0, u'n': u'97155700xxxx'}]

C:\yowsup>

i am sure this number has whatsapp thanks

CODeRUS commented 10 years ago

yowsup working properly. issues on WhatsApp server side.

mrtass commented 10 years ago

if i add a new number to my android phone it's synced properly

mrtass commented 10 years ago

anyway what can be to get if a user is whatsapp user any alternatives ?

CODeRUS commented 10 years ago

no public methods for spambots, sorry ;)

shirioko commented 10 years ago

Not entirely true. You can request the last seen time where it will return either

<iq from="3162944****@s.whatsapp.net" id="lastseen-1386684717-1" type="result">
  <query xmlns="jabber:iq:last" seconds="1970"></query>
</iq>

for an existing contact or

<iq from="31650568134@s.whatsapp.net" id="lastseen-1386684720-2" type="error">
  <error code="404" text="item-not-found"></error>
</iq>

if the phone number is not registered.

CODeRUS commented 10 years ago

afaik you wont get real reply if you never synced that contact.

shirioko commented 10 years ago

Using Jake's new test number which has never been synced on my test number still gives me his last seen time

<iq from="1604*******@s.whatsapp.net" id="lastseen-1386685267-2" type="result">
  <query xmlns="jabber:iq:last" seconds="12751"></query>
</iq>
mrtass commented 10 years ago

yes i've trying but not getting any reply can anyone try with this number +971529598462 please ?

CODeRUS commented 10 years ago

hm ,it's strange. can you test more numbers? whatsapp saying number will be blocked if send many requests to non-synced number.

shirioko commented 10 years ago

Number is from United Arab Emirates? Doesn't look like it's registered.

mrtass commented 10 years ago

yes from united arab emirates it's registered on a normal device and currently working