Impulsa tu negocio con un bot usando las apis oficiales de whatsapp. pueden ver el video paso a paso en el siguiente enlace: https://youtu.be/puYWiZDJnL0
git clone https://github.com/JPierr3/bigdateros-whatsappbot-python.git
cd bigdateros-whatsappbot-python
virtualenv -p 3.10.11 .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py
Ingresar la URL
http://127.0.0.1:5000/webhook
en body, seleccionar "raw" y tipo "JSON", no olvidar agregar tu número
{
"object": "whatsapp_business_account",
"entry": [{
"id": "WHATSAPP_BUSINESS_ACCOUNT_ID",
"changes": [{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "PHONE_NUMBER",
"phone_number_id": "PHONE_NUMBER_ID"
},
"contacts": [{
"profile": {
"name": "NAME"
},
"wa_id": "PHONE_NUMBER"
}],
"messages": [{
"from": "agrega tu numero",
"id": "wamid.ID",
"timestamp": "TIMESTAMP",
"text": {
"body": "hola"
},
"type": "text"
}]
},
"field": "messages"
}]
}]
}