Closed alexferra closed 10 months ago
userId or chatid is same -> [number]@c.us
or user number only and will fix it
user_number = "2010******"
messages = client.getMessages(user_number )
@3mora2 I get this error. The same number works to send message to, but I can't getMessages, I can also get unread messages successfully
the client.getMessages(user_number ) returns this error
It's not error, it was async method but i update it, so update lib by use
pip install git+https://github.com/3mora2/WPP_Whatsapp
@3mora2 I tried calling with await and also updating but still getting same error. Also tried other get messages methods and similar issue.
I try get_messages now and it work fine post full error
if I use await I get:
File "C:\Users\Alefe\AppData\Roaming\Python\Python311\site-packages\WPP_Whatsapp\api\layers\HostLayer.py", line 108, in
If I use 1.5.1, I get the same issue I initially posted.
@3mora2 can you push the change to a new package ?
update now
pip install git+https://github.com/3mora2/WPP_Whatsapp
@3mora2 can you please update the package
Ok
@3mora2 thanks seem to work now
Hello,
how does client.getMessages() work ?
Im able to send messages but not open a certain chat and get messages. how can I get the chatID for a specific user? How to get the chatid by having the userId and then getting all messages from them?
thank you in advance