Whatsapp unofficial api for python. Very EASY and very FAST.
First one register and get device https://whatsapp.securedatainfo.com/
Use
git clone https://github.com/tolgatasci/whatsapp-api-python
Load module
from api import Api
Example
'''
api = Api(device_token="")
messages = api.messages(limit=20)
print(messages)
incoming_message = api.incoming_messages()
print(incoming_message)
show_message = api.show_message("")
print(show_message)
files = {'file': ('test.jpg', open('test.jpg', 'rb'))}
# {"phone": "+905467751802", "message": "diffrent message"}
# If you don't want it, you can delete the key. "message"
send_message = api.send_message(message_body="test",
phone_numbers=[{"phone": "+905467751802", "message": "test xxx"}], files=files)
send_message = api.send_message(message_body="test",
phone_numbers=[{"phone": "+905467751802", "message": "test xxx"}])
send_code = api.send_code(code="053666", phone="+905467751802")
print(send_code)
info = api.info()
print(info)
core_get = api.GET(method='test',params=dict(test="1"))
core_post = api.GET(method='test', params=dict(test="1"))
'''