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

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.5.4.1
File Size Uploaded Provenance Actions
wpp_whatsapp-0.5.4.1.tar.gz 94.7 kB Without provenance Details for wpp_whatsapp-0.5.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 195.9 kB

Release files / wpp_whatsapp-0.5.4.1.tar.gz

Download URL wpp_whatsapp-0.5.4.1.tar.gz
Size 94.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f860b27599912953fe0bbda65107f312ca692e70084e012d7564b398103be484
BLAKE2b-256 checksum
How to use checksums
bde2a8e987566eae5e93a8e31b04206fadf77dd92a012023033006df32bbeda6
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.4.1-py3-none-any.whl

Download URL wpp_whatsapp-0.5.4.1-py3-none-any.whl
Size 101.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f85958ba69cabb70e3fe6a76a50f852ad6f36ab19d3424892a8a8ccc817c5bdd
BLAKE2b-256 checksum
How to use checksums
88c5237f9a26fac9157c324b9453c6f0a83333c775704f9e17410ecf30f3d3eb
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.4.1

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