python-whatsapp-wrapper docs

🤖 Want a whatsapp bot? You’re in the right place.

Documentation Status Github Actions - Tests PyPI - Downloads PyPI - Version

📖 Introduction

A high-level Python wrapper for the WhatsApp API, providing easy abstraction.

A huge thanks to Python-Telegram-Bot team for their impressive work on Telegram bots, which inspired me to create this wrapper.

📱 Whatsapp API Supports

Tested in version v19.0, but you can try older versions by changing api_version in whatsapp.bot.WhatsappBot.api_version.

🛠️ Before start

Before you can create your own bots, you need to follow some steps to become a Meta API Developer.

YOU NEED to become a Meta developer to use their API. You can find the step-by-step guide here: Facebook Developers WhatsApp API

Warning

It’s preferable to have an extra/new SIM card to register your business account (don’t try with your personal SIM, this action will ERASE all your whatsapp data), but they give you some free credits to get started.

🚀 Installation

We’re on PyPI! So you can easy install using:

pip install python-whatsapp-wrapper

Or directly by cloning project’s GitHub repository:

git clone https://github.com/Sergio-Daniel-Pires/python-whatsapp-wrapper
cd python-whatsapp-wrapper
pip install .

🤔 How I made my own bot?

Our repository contains many examples that you can just click-and-run. You might want to try echo_bot.py, a bot that returns any text you send it.

📄 License

MIT

project