Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with the function client.getStatus('000000000000@c.us'); #2793

Open
jeffersoncaramori opened this issue Jul 26, 2024 · 2 comments
Open
Labels
bug Something isn't working needs triage Needs avaliation

Comments

@jeffersoncaramori
Copy link

jeffersoncaramori commented Jul 26, 2024

I tried to simulate the execution of the function client.getStatus('XXXXXX@c.us') but it throws the error Failed to retrieve status of XXXXXXXX: a.isLid is not a function.

The intention is to obtain the status of the contact, whether they are online or not.

@jeffersoncaramori jeffersoncaramori added bug Something isn't working needs triage Needs avaliation labels Jul 26, 2024
@jeffersoncaramori jeffersoncaramori changed the title Error with function client.getStatus('000000000000@c.us'); Error with the function client.getStatus('000000000000@c.us'); Jul 29, 2024
@ghayman
Copy link
Collaborator

ghayman commented Aug 8, 2024

It does seem like this call is broken inside WhatsApp code.

Try using

await client.getChatIsOnline(chatId)

but, got to admit, I could never get that to return true

@jeffersoncaramori
Copy link
Author

Thanks for your contribution @ghayman. I tested this function, and unfortunately it doesn't work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Needs avaliation
Projects
None yet
Development

No branches or pull requests

2 participants