WhatsApp + Python
WAHA provides a private, self-hosted,
and free HTTP API to seamlessly integrate and automate WhatsApp using Python.
Send messages, manage chats, and streamline workflows effortlessly with a simple API!

WhatsApp + Python
WAHA provides a private, self-hosted,
and free HTTP API to seamlessly integrate and automate WhatsApp using Python.
Send messages, manage chats, and streamline workflows effortlessly with a simple API!
pip install requests
pip install flask
import requests
url = "http://localhost:3000/api/sendText"
data = {
"session": "default",
"chatId": "12132132130@newsletter",
"text": "Hi there!"
}
response = requests.post(url, json=data)
response.raise_for_status()
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route("/bot", methods=["POST"])
def whatsapp_webhook():
data = request.get_json()
if data["event"] != "message":
# answer to message, save it, etc
process_message(data["payload"])
return "OK"
⚡ Quick Start and 🧩 Python Integration documentation to get started!
WAHA Core
version is always free, no limits in messages or time!
WAHA Plus
version have no licence expiration!
No strings to suspicious SaaS WhatsApp API solutions. Install it on your own server!
Use your own favorite language - Python, JavaScript, PHP, C#, Clojure, or PowerShell.
PowerShell, really? Are you insane?! Choose another language, dude.
You can easily run 1 session to automate your WhatsApp and scale it to 500 sessions to provide SaaS solution!
You can
run the API in a click!*
Documentation
has a lof examples and how-to guides.
*It's actually "a command", not a click.
Under the hood
it runs a real instance of Whatsapp Web to avoid getting blocked.
WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be
considered
totally safe.