Git Product home page Git Product logo

whatsapp-python's Introduction

Made in Italy Downloads Downloads Downloads

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

Forked from Neurotech-HQ/heyoo

Supported features

  1. Listening to events (messages, media, etc.)
  2. Sending messages
  3. Marking messages as read
  4. Sending Media (images, audio, video and documents)
  5. Sending location
  6. Sending interactive buttons
  7. Sending template messages
  8. Parsing messages and media received

App events

Asynchronous app events are now available!

The docs are available in the wiki

Leave feedbacks/report issues freely on GitHub! I'll be glad to help you!

Installation

To install the library you can either use pip (latest release version):

pip install -i https://test.pypi.org/simple/ whatsapp-python==3.0.2.post1 (the production link doesn't actually work, I'm working on this issue - #16)

or git (latest development version):

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

Documentation

The documentation for the library is available under the wiki section on GitHub.

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, even if the billing docs are pretty hard to understand. The first 1000 chats created are free, then there is a pay-as-you-go fee that is paid for each conversation started.

IMPORTANT: it is now mandatory (at least it was for me) to add a credit card to the whatsapp account to use the service. I eventually got billed for using a non-test number (~1,20โ‚ฌ), so be carefull using the API!

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 heyoo, install whatsapp-python==1.1.2 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

whatsapp-python's People

Contributors

filipporomani avatar kalebu avatar soerenetler avatar jaxparrow avatar taylorgibb avatar daudahmad0303 avatar epcosta17 avatar claudineibr avatar noisecontrollers avatar mscansian avatar seun-beta avatar nikbott avatar esteban108 avatar sharmakh11597 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.