danielcardeenas / sulla

👩🏻‍🔬 Javascript Whatsapp api library for chatbots
MIT License
1.27k stars 271 forks source link

get number connected #616

Closed phenriquec closed 3 years ago

phenriquec commented 3 years ago

how to get the number of the connected whatsapp?

vasani-arpit commented 3 years ago

There is a function which is called getMe() which is written here https://github.com/danielcardeenas/sulla/blob/master/src/lib/wapi/wapi.js#L216

I am not sure it is working or not. I haven't used it.

ghost commented 2 years ago

@vasani-arpit I tried getMe with your wapi script and another and it doesn't work, can you fix it? I need it badly. With your script I get "wid" undefined and with my script I get "me" undefined.

vasani-arpit commented 2 years ago

@dahanj95 try this https://github.com/vasani-arpit/WBOT/blob/master/src/WAPI.js it should work.

ghost commented 2 years ago

@dahanj95 try this https://github.com/vasani-arpit/WBOT/blob/master/src/WAPI.js it should work.

That's the one I tried, doesn't work.