https://github.com/tolgatasci/whatsapp-api-python
Whatsapp unofficial api for python. Very EASY and very FAST.
https://github.com/tolgatasci/whatsapp-api-python
python whatsapp whatsapp-api whatsapp-api-python whatsapp-bot whatsappbusinessapi
Last synced: about 2 months ago
JSON representation
Whatsapp unofficial api for python. Very EASY and very FAST.
- Host: GitHub
- URL: https://github.com/tolgatasci/whatsapp-api-python
- Owner: tolgatasci
- License: mit
- Created: 2021-03-17T14:00:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T08:03:19.000Z (about 4 years ago)
- Last Synced: 2025-01-18T07:28:29.553Z (4 months ago)
- Topics: python, whatsapp, whatsapp-api, whatsapp-api-python, whatsapp-bot, whatsappbusinessapi
- Language: Python
- Homepage:
- Size: 221 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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-pythonLoad 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"))
'''