mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.04k stars 793 forks source link

get_unread does not return unread messages before opening the wrapper #197

Closed sevetseh28 closed 6 years ago

sevetseh28 commented 6 years ago

If I have unread messages before running the WappWeb wrapper and keep them unread the .get_unread method won't return the unread messages since isNewMsg attribute is set None even though the message is still unread on WhatsApp.

Has anyone figured out how to solve this?

Thanks.

sevetseh28 commented 6 years ago

Just right after opening this issue I realized that js_obj of chats have an unreadCount attribute so this could be used to fix this issue. I will try to do a PR.

PR done: https://github.com/mukulhase/WebWhatsapp-Wrapper/pull/198 @mukulhase

tapankumar commented 6 years ago

@sevetseh28 - Can you please paste your example code here so that all can be benefited?

fyudelgado commented 6 years ago

I made these changes to the code, and still not receiving messages.

Any ideas?

super-cache-money commented 6 years ago

@fyudelgado also have this problem

sevetseh28 commented 6 years ago

This feature has already been merged with a PR I did months ago. So I'm closing the issue guys. https://github.com/mukulhase/WebWhatsapp-Wrapper/pull/198