A simple webhook for WhatsApp API using FastAPI.
- Export your own token as an env var
- Host the app on any server or serve the app using ngrok or any other tool
- Verify your token on "Meta Developers" page
You have to install ngrok or any other similar tool.
-
Install the dependencies
pip install -r requirements.txt
-
Run the server
python main.py
-
Run ngrok
If you changed the port in
main.py
file, you have to change it here as well.ngrok http 8000
-
Use ngrok link as your Webhook link