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.02k stars 796 forks source link

Get unread messages issue #1049

Open alencinafaa opened 3 years ago

alencinafaa commented 3 years ago

I'm using Windows 8, Python 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)], Mozilla Firefox 88.0.1and geckodriver 0.29.1, and installed webwhatsapi via pip (pip install webwhatsapi) on May 30, 2021.

I'm trying to get unread messages through three different attemps

My code:

from webwhatsapi import WhatsAPIDriver driver = WhatsAPIDriver(loadstyles=False) #%% get_unrread() #%% driver.get_unread_messages_in_chat() #%% driver.wapi_functions.getUnreadMessages(False, False, False)

With any of them I retrieve the information only one time. After that they returns an empty array.

There is a way to do not loss the information after call some of them? (fox example to use get_unread() and get_unread_messages_in_chat() sequentially)