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.03k stars 797 forks source link

Error when receive audio message #848

Open najecha opened 4 years ago

najecha commented 4 years ago

Please help.. error when receive audio message

for contact in driver.get_unread(): File "C:\Python38\lib\site-packages\webwhatsapi-2.0.3-py3.8.egg\webwhatsapi__init.py", line 370, in get_unread messages = list(filter(None.ne,[factory_message(message, self) for message in raw_message_group['messages']])) File "C:\Python38\lib\site-packages\webwhatsapi-2.0.3-py3.8.egg\webwhatsapi__init.py", line 370, in messages = list(filter(None.ne__,[factory_message(message, self) for message in raw_message_group['messages']])) File "C:\Python38\lib\site-packages\webwhatsapi-2.0.3-py3.8.egg\webwhatsapi\objects\message.py", line 29, in factory_message return MediaMessage(js_obj, driver) File "C:\Python38\lib\site-packages\webwhatsapi-2.0.3-py3.8.egg\webwhatsapi\objects\message.py", line 85, in init super(MediaMessage, self).init__(js_obj, driver) File "C:\Python38\lib\site-packages\webwhatsapi-2.0.3-py3.8.egg\webwhatsapi\objects\message.py", line 62, in init if js_obj["content"]: KeyError: 'content'

How to fix this?