code-chat-br / whatsapp-api

CodeChat - WhatsApp Api
https://docs.codechat.dev
Apache License 2.0
566 stars 236 forks source link

findChats | findContacts issue #113

Closed mrlazarias closed 3 months ago

mrlazarias commented 5 months ago

I'm trying to retrieve the list of chats I have on WhatsApp. I think I need to fetch it from the findChats endpoint and then, using the RemoteJid, make another request to findContacts. However, the response I'm getting is completely unexpected. I'm receiving a list of several objects with the same RemoteJid, and these objects also have pushName as null.

How can I fetch the chats and the contact information for each chat to build the list of active chats?

jrCleber commented 4 months ago

Esse comportamento ainda persiste?

mrlazarias commented 4 months ago

Sim

Esse comportamento ainda persiste?

jrCleber commented 3 months ago

Esse comportamento é bem incomum. Delete esses contatos e se reconecta. Informe aqui se o erro ainda persiste.