Webwhatsapp-wrapper: Sample is not working

Created on 16 Jan 2018  路  5Comments  路  Source: mukulhase/WebWhatsapp-Wrapper

WebWhatsAPI/sample/echo.py
````
import time
from webwhatsapi import WhatsAPIDriver
from webwhatsapi.objects.message import Message

driver = WhatsAPIDriver()
print("Waiting for QR")
driver.wait_for_login()

print("Bot started")

while True:
time.sleep(3)
print('Checking for more messages')
for contact in driver.get_unread():
for message in contact.messages:
if isinstance(message, Message): # Currently works for text messages only.
contact.chat.send_message(message.safe_content)`
```
Is not working(only repeats print(Checking more messages)),Using Chrome

All 5 comments

It's working perfectly for me. Which chrome version are you using? Please notice, that the message isn't unread anymore, when you open it with your mobile phone.

Not working for me too.
I do not has any samples to consult. Please make more examples.
I am using in windows 10 64x, it's giving several errors like 'WhatsAPIDriver' object has no attribute 'get_contacts'.

Note that the pip installed version might be behind the official github source and so might be causing trouble. Also youse the newest chromedriver / geckodriver

Hi
Send me this error:
'WhatsAPIDriver' object has no attribute 'send_media'
Help me, please

Update file __init__.py go to here, functions required send_media(), convert_to_base64(), send_message_with_thumbnail().

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zingers-ZA picture Zingers-ZA  路  6Comments

kivlanzein picture kivlanzein  路  6Comments

wallysonn picture wallysonn  路  3Comments

kashif-raza picture kashif-raza  路  5Comments

FeezyHendrix picture FeezyHendrix  路  3Comments