Skip to content

Whatsapp unofficial api for python. Very EASY and very FAST.

License

Notifications You must be signed in to change notification settings

tolgatasci/whatsapp-api-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb769dd · Mar 18, 2021

History

8 Commits
Mar 17, 2021
Mar 17, 2021
Mar 17, 2021
Mar 18, 2021
Mar 18, 2021
Mar 18, 2021
Mar 17, 2021

Repository files navigation

Whatsapp Unofficial Api Python

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"))
'''