Skip to main content

WPP_Whatsapp

PyPI Version View

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.4.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WPP-Whatsapp 0.4.10
File Size Uploaded Provenance Actions
wpp_whatsapp-0.4.10.tar.gz 94.1 kB Without provenance Details for wpp_whatsapp-0.4.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for WPP-Whatsapp 0.4.10
File Interpreter ABI Platform Actions
wpp_whatsapp-0.4.10-py3-none-any.whl Python 3 none any Details for wpp_whatsapp-0.4.10-py3-none-any.whl

Total release size: 194.6 kB

Release files / wpp_whatsapp-0.4.10.tar.gz

Download URL wpp_whatsapp-0.4.10.tar.gz
Size 94.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a7bc6724e781fd698a75e514b1c22c56270b2afa34582e64e430d712b95abcd3
BLAKE2b-256 checksum
How to use checksums
814f7c1e5b237ada1c6b8941cf6b4b046c93a8b80df2d4b6b4b4007451dd8f2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / wpp_whatsapp-0.4.10-py3-none-any.whl

Download URL wpp_whatsapp-0.4.10-py3-none-any.whl
Size 100.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4b18ed09b7406214bf19ed121b3ee85580cfa88e4b9d40e4fe9485e98903a6b
BLAKE2b-256 checksum
How to use checksums
85571b4c39dfcd7508cad304799ed5f55c7042b526318e2fc69244f02242fbe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Security for WPP-Whatsapp 0.4.10

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.

Release history Release notifications | RSS feed

This release

0.4.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page