WPP_Whatsapp
WPP_Whatsapp is WPPConnect Converted to python, so Documentation is same
WPP_Whatsapp aim of exporting functions from WhatsApp Web to the python, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination
Functions
| Automatic QR Refresh | ✔ |
| Send text, image, video, audio and docs | ✔ |
| Get contacts, chats, groups, group members, Block List | ✔ |
| Send contacts | ✔ |
| Send stickers | ✔ |
| Send stickers GIF | ✔ |
| Multiple Sessions | ✔ |
| Forward Messages | ✔ |
| Receive message | ✔ |
| insert user section | ✔ |
| Send location | ✔ |
| and much more | ✔ |
See more at WhatsApp methods
Getting Started
Installation
installed with pip:
pip install WPP_Whatsapp -U
Alternatively, you can grab the latest source code from GitHub:
pip install git+https://github.com/3mora2/WPP_Whatsapp
Send Text
from WPP_Whatsapp import Create
# start client with your session name
your_session_name = "test"
creator = Create(session=your_session_name)
client = creator.start()
# Now scan Whatsapp Qrcode in browser
# check state of login
if creator.state != 'CONNECTED':
raise Exception(creator.state)
phone_number = "*********" # or "+*********"
message = "hello from wpp"
# Simple message
result = client.sendText(phone_number, message)
Receive Messages(Auto Replay)
from WPP_Whatsapp import Create
# start client with your session name
your_session_name = "test"
creator = Create(session=your_session_name)
client = creator.start()
# Now scan Whatsapp Qrcode in browser
# check state of login
if creator.state != 'CONNECTED':
raise Exception(creator.state)
def new_message(message):
global client
# Add your Code here
if message and not message.get("isGroupMsg"):
chat_id = message.get("from")
message_id = message.get("id")
if "السلام عليكم" in message.get("body"):
client.reply(chat_id, "وعليكم السلام", message_id)
else:
client.reply(chat_id, "Welcome", message_id)
# Add Listen To New Message
creator.client.onMessage(new_message)
For More Examples
Metadata
Release files for WPP-Whatsapp 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wpp_whatsapp-0.5.3.tar.gz | 94.7 kB | Without provenance | Details for wpp_whatsapp-0.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wpp_whatsapp-0.5.3-py3-none-any.whl | Python 3 | none | any | Details for wpp_whatsapp-0.5.3-py3-none-any.whl |
Total release size: 195.7 kB
Release files / wpp_whatsapp-0.5.3.tar.gz
| Download URL | wpp_whatsapp-0.5.3.tar.gz |
|---|---|
| Size | 94.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0219385181e7e1d3b8623d9a68d989ad0ab77e92be9c000bd33293f36f3b3790
|
|
BLAKE2b-256 checksum How to use checksums |
10534d6f179e8529fdd9f0aa3a977511f2a8d5fe6c6f3f930395ed2a2d4a023e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / wpp_whatsapp-0.5.3-py3-none-any.whl
| Download URL | wpp_whatsapp-0.5.3-py3-none-any.whl |
|---|---|
| Size | 101.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69c397e17b471f1054b915a9a00b8b16f3750ab931e2230a184be89dcd948ad2
|
|
BLAKE2b-256 checksum How to use checksums |
caa3aa3501a33b8612adde932131e1bdef137b869f274bd441dce4eb302f0fed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for WPP-Whatsapp 0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.