Skip to main content

Opensource Python wrapper to WhatsApp Cloud API

Project description

whatsapp-python

Made in Italy Downloads Downloads Downloads

Free, open-source Python wrapper for the WhatsApp Cloud API.

Forked from Neurotech-HQ/heyoo

Supported features

  1. Sending messages
  2. Marking messages as read
  3. Sending Media (images, audio, video and documents)
  4. Sending location
  5. Sending interactive buttons
  6. Sending template messages
  7. Parsing messages and media received
  8. Receiving and parsing messages - hook object

App events

App events are now available!

The docs are available in the wiki

Please test this feature out and leave feedbacks/report issues on GitHub!

Installation

To install the library you can either use pip:

pip install whatsapp-python

or git:

git clone https://github.com/filipporomani/whatsapp.git
cd whatsapp
python3 setup.py install

Documentation

The documentation for the library is available in the wiki

Costs of the API

While using third-party API providers of the WhatsApp API may have some monthly fees, using the WhatsApp API provided directly by Facebook is way cheaper. The first 1000 chats created are free, then there is a pay-as-you-go fee that is paid for each conversation started.

All the prices are available in the WhatsApp API docs

Switching from Neurotech-HQ/heyoo

Any version >1.1.2 is incompatible with the original heyoo library! Be careful updating! Read the docs first! Any version <=1.1.2 is fully compatible with the original heyoo library and doesn't include any breaking change. You can ignore this warning if it's your first time using the library.

Switching from heyoo to whatsapp-python doesn't require any change for versions up to 1.1.2: just uninstall the old, install the new and change the import name from heyoo to whatsapp. For version which are GREATER THEN 1.1.2, messages have became objects, so you need to change your code to use the new methods.

Note: docs for version 1.1.2 are available in the dedicated wiki page

Issues

If you are facing any issues or have any questions, please open an issue on the GitHub repository

Contributing

This is an opensource project published under the MIT License: LICENSE.

References

  1. WhatsApp Cloud API official documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whatsapp-python-2.9.3.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file whatsapp-python-2.9.3.tar.gz.

File metadata

  • Download URL: whatsapp-python-2.9.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for whatsapp-python-2.9.3.tar.gz
Algorithm Hash digest
SHA256 548e2259ab5eae82eaeab5315c8e9d368c943fbedd49748684fdd9b4c7d6a44a
MD5 2ecdbff2b98ade69c2145bb0311fe14d
BLAKE2b-256 681c9d98dd3c7504a4762634e762e7aa1a7986b3efbf640749b978b8fc6046f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page