mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.03k stars 797 forks source link

Check Online status of a non contact user (Unregistered) #840

Open amoghh opened 4 years ago

amoghh commented 4 years ago

I cannot seem to get presence updates of any numbers who i havent interacted with. there has to be some workaround.. i have tried the following but it only works with numbers i have interacted with before

window.WAPI.isOnline = function (id, done){ var idUser = new window.Store.UserConstructor(id, {intentionallyUsePrivateConstructor: true}); is_online = WAPI.getChat(idUser).presence.isOnline; if (done !== undefined) done(is_online); return is_online; }

There seem to be many apps on the playstore doing this this for eg. https://play.google.com/store/apps/details?id=com.wtrack_android

There has to be some way.. please any help will be appreciated

rsewell97 commented 3 years ago

+1 I would also find this feature extremely valuable. Many systems I found online charge for this and this would give the module additional flexibility. Thanks in advance!

erm3nda commented 3 years ago

That is a limitation design from whatsapp service, you can't get everyones images and status of every phone you try. Must be your contact, and is not the one and only rule for them. If you got flagged by spam for sure the service will give you a *****