open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
330 stars 71 forks source link

Correction to get only registered phone number #32

Closed andersondeoliveiramachado closed 4 years ago

mrodal commented 4 years ago

Hi, what are you getting from getMe()['me'] ? I only get my WID, xxxxxxxx@c.us So self.getMe()['me']['user'] doesnt work for me

andersondeoliveiramachado commented 4 years ago

Hi, what are you getting from getMe()['me'] ? I only get my WID, xxxxxxxx@c.us So self.getMe()['me']['user'] doesnt work for me image image

mrodal commented 4 years ago

hmm thats probably because of differences between ff and chrome.. Im getting the _serialized value instead of the whole object.

Could you fix the PR to cover both cases? something that checks if it is an object and returns ['user'] or the current implementation otherwise