WPP-Whatsapp


NameWPP-Whatsapp JSON
Version 0.4.8.1 PyPI version JSON
download
home_pagehttps://github.com/3mora2/WPP_Whatsapp
SummaryWPP_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
upload_time2024-07-25 11:48:18
maintainerNone
docs_urlNone
authorAmmar Alkotb
requires_pythonNone
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # WPP_Whatsapp
<p align="center">
  <a href="https://pypi.org/project/WPP-Whatsapp"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/WPP_Whatsapp.svg?maxAge=86400" /></a>
  <a href="https://pypi.org/project/WPP-Whatsapp"><img alt="View" src="https://static.pepy.tech/personalized-badge/WPP_Whatsapp?period=total&units=international_system&left_text=Downloads"/></a>
</p>

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         
WPP_Whatsapp > [WPPConnect](https://github.com/wppconnect-team/wppconnect) Converted to python, so Documentation is same


## Online channels

[![Telegram Group](https://img.shields.io/badge/Telegram-Group-32AFED?logo=telegram)](https://t.me/WPP_Whatsapp)

## 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 <a href="https://wppconnect.io/wppconnect/classes/Whatsapp.html">WhatsApp methods</a>
## Getting Started

### Installation

installed with [pip](https://pip.pypa.io):
```commandline
pip install WPP_Whatsapp -U
```
Alternatively, you can grab the latest source code from [GitHub](https://github.com/3mora2/WPP_Whatsapp):

```
pip install git+https://github.com/3mora2/WPP_Whatsapp
```



### Send Text

```python
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)
```python
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)
```

### <a href="https://github.com/3mora2/WPP_Whatsapp/tree/main/examples">For More Examples</a>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/3mora2/WPP_Whatsapp",
    "name": "WPP-Whatsapp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Ammar Alkotb",
    "author_email": "ammar.alkotb@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d6/fa/b40ce65806b39573cbe393b09599d07fb6949d4979370cd8b124525e1358/wpp_whatsapp-0.4.8.1.tar.gz",
    "platform": null,
    "description": "# WPP_Whatsapp\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/WPP-Whatsapp\"><img alt=\"PyPI Version\" src=\"https://img.shields.io/pypi/v/WPP_Whatsapp.svg?maxAge=86400\" /></a>\n  <a href=\"https://pypi.org/project/WPP-Whatsapp\"><img alt=\"View\" src=\"https://static.pepy.tech/personalized-badge/WPP_Whatsapp?period=total&units=international_system&left_text=Downloads\"/></a>\n</p>\n\nWPP_Whatsapp aim of exporting functions from WhatsApp Web to the python, which can be used to support the creation of\nany interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many\nother things, use your imagination         \nWPP_Whatsapp > [WPPConnect](https://github.com/wppconnect-team/wppconnect) Converted to python, so Documentation is same\n\n\n## Online channels\n\n[![Telegram Group](https://img.shields.io/badge/Telegram-Group-32AFED?logo=telegram)](https://t.me/WPP_Whatsapp)\n\n## Functions\n\n|                                                            |   |\n|------------------------------------------------------------|---|\n| Automatic QR Refresh                                       | \u2714 |\n| Send **text, image, video, audio and docs**                | \u2714 |\n| Get **contacts, chats, groups, group members, Block List** | \u2714 |\n| Send contacts                                              | \u2714 |\n| Send stickers                                              | \u2714 |\n| Send stickers GIF                                          | \u2714 |\n| Multiple Sessions                                          | \u2714 |\n| Forward Messages                                           | \u2714 |\n| Receive message                                            | \u2714 |\n| insert user section                                        | \u2714 |\n| Send _location_                                            | \u2714 |\n| **and much more**                                          | \u2714 |\n\nSee more at <a href=\"https://wppconnect.io/wppconnect/classes/Whatsapp.html\">WhatsApp methods</a>\n## Getting Started\n\n### Installation\n\ninstalled with [pip](https://pip.pypa.io):\n```commandline\npip install WPP_Whatsapp -U\n```\nAlternatively, you can grab the latest source code from [GitHub](https://github.com/3mora2/WPP_Whatsapp):\n\n```\npip install git+https://github.com/3mora2/WPP_Whatsapp\n```\n\n\n\n### Send Text\n\n```python\nfrom WPP_Whatsapp import Create\n\n# start client with your session name\nyour_session_name = \"test\"\ncreator = Create(session=your_session_name)\nclient = creator.start()\n# Now scan Whatsapp Qrcode in browser\n\n# check state of login\nif creator.state != 'CONNECTED':\n    raise Exception(creator.state)\n\nphone_number = \"*********\"  # or \"+*********\"\nmessage = \"hello from wpp\"\n\n# Simple message\nresult = client.sendText(phone_number, message)\n```\n\n### Receive Messages(Auto Replay)\n```python\nfrom WPP_Whatsapp import Create\n\n# start client with your session name\nyour_session_name = \"test\"\ncreator = Create(session=your_session_name)\nclient = creator.start()\n# Now scan Whatsapp Qrcode in browser\n\n# check state of login\nif creator.state != 'CONNECTED':\n    raise Exception(creator.state)\n\n\ndef new_message(message):\n    global client\n    # Add your Code here\n    if message and not message.get(\"isGroupMsg\"):\n        chat_id = message.get(\"from\")\n        message_id = message.get(\"id\")\n        if \"\u0627\u0644\u0633\u0644\u0627\u0645 \u0639\u0644\u064a\u0643\u0645\" in message.get(\"body\"):\n            client.reply(chat_id, \"\u0648\u0639\u0644\u064a\u0643\u0645 \u0627\u0644\u0633\u0644\u0627\u0645\", message_id)\n        else:\n            client.reply(chat_id, \"Welcome\", message_id)\n\n\n# Add Listen To New Message\ncreator.client.onMessage(new_message)\n```\n\n### <a href=\"https://github.com/3mora2/WPP_Whatsapp/tree/main/examples\">For More Examples</a>\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "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",
    "version": "0.4.8.1",
    "project_urls": {
        "Bug Report": "https://github.com/3mora2/WPP_Whatsapp/issues/new",
        "Homepage": "https://github.com/3mora2/WPP_Whatsapp"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0345b793f133785f046d91d8d6e64233c0461ffd67022057076b88a1e71394e",
                "md5": "0e6ae96f96feec85d5d3f5d3041b8def",
                "sha256": "dd9924186d2f42dbfe4f85a0ac8e3929ad829d7c73eaf1f83af01a9cded6b262"
            },
            "downloads": -1,
            "filename": "WPP_Whatsapp-0.4.8.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0e6ae96f96feec85d5d3f5d3041b8def",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 99996,
            "upload_time": "2024-07-25T11:48:16",
            "upload_time_iso_8601": "2024-07-25T11:48:16.555762Z",
            "url": "https://files.pythonhosted.org/packages/d0/34/5b793f133785f046d91d8d6e64233c0461ffd67022057076b88a1e71394e/WPP_Whatsapp-0.4.8.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d6fab40ce65806b39573cbe393b09599d07fb6949d4979370cd8b124525e1358",
                "md5": "7f2de76c791c3aa3c7d288ce641ce06a",
                "sha256": "71bdfa79c837cacb56bb414344b77b6c30b3079b39d1f5c8d53ff5533503497b"
            },
            "downloads": -1,
            "filename": "wpp_whatsapp-0.4.8.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7f2de76c791c3aa3c7d288ce641ce06a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 93551,
            "upload_time": "2024-07-25T11:48:18",
            "upload_time_iso_8601": "2024-07-25T11:48:18.109797Z",
            "url": "https://files.pythonhosted.org/packages/d6/fa/b40ce65806b39573cbe393b09599d07fb6949d4979370cd8b124525e1358/wpp_whatsapp-0.4.8.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-25 11:48:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "3mora2",
    "github_project": "WPP_Whatsapp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "wpp-whatsapp"
}
        
Elapsed time: 0.25025s