Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ from_whatsapp_number = 'whatsapp:+14155238886'
|
|
17 |
|
18 |
# Route to handle incoming WhatsApp messages
|
19 |
@app.route('/whatsapp', methods=['POST'])
|
20 |
-
def
|
21 |
incoming_msg = request.values.get('Body', '').lower()
|
22 |
sender = request.values.get('From')
|
23 |
|
|
|
17 |
|
18 |
# Route to handle incoming WhatsApp messages
|
19 |
@app.route('/whatsapp', methods=['POST'])
|
20 |
+
def whatsapp_webhook():
|
21 |
incoming_msg = request.values.get('Body', '').lower()
|
22 |
sender = request.values.get('From')
|
23 |
|