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

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.0
File Size Uploaded Provenance Actions
wpp_whatsapp-0.5.0.tar.gz 94.5 kB Without provenance Details for wpp_whatsapp-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 195.4 kB

Release files / wpp_whatsapp-0.5.0.tar.gz

Download URL wpp_whatsapp-0.5.0.tar.gz
Size 94.5 kB
Tags Source
SHA-256 checksum
How to use checksums
47e6953d958e326b6bdf92915e49f6eee4362445f6a62cffd317a583309f48f9
BLAKE2b-256 checksum
How to use checksums
aac12abba42cdbc5b59013844aa0b004450cb90cd8d8221a2737cba0c6183a10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

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

Download URL wpp_whatsapp-0.5.0-py3-none-any.whl
Size 100.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97925897e5f58c43448ec925bcba19fbbb2e75dbffd693ed0ae4424f58c85633
BLAKE2b-256 checksum
How to use checksums
8b7d22489206537f98c72f4d1a6d37a42bd6c0b44915c753177eff4d2dce1cb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Security for WPP-Whatsapp 0.5.0

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