RMC chatbot version 1 implemented

This commit is contained in:
2026-08-18 09:39:38 +05:30
commit 67a10b9156
31 changed files with 4837 additions and 0 deletions

49
test_restart.py Normal file
View File

@@ -0,0 +1,49 @@
import requests
payload = {
"object": "whatsapp_business_account",
"entry": [
{
"id": "1068191009070265",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "15551914329",
"phone_number_id": "1236658909534007"
},
"contacts": [
{
"profile": {
"name": "Dev"
},
"wa_id": "919994834737",
"user_id": "IN.1458184416042595"
}
],
"messages": [
{
"from": "919994834737",
"from_user_id": "IN.1458184416042595",
"id": "wamid.HBgMOTE2Mzc5NzgzOTExFQIAEhgWM0VCMDU3MDk2N0Q2ODk0MzE2N0U4NwA=",
"timestamp": "1786945902",
"interactive": {
"type": "button_reply",
"button_reply": {
"id": "MENU_SERVICES",
"title": "My Services"
}
},
"type": "interactive"
}
]
},
"field": "messages"
}
]
}
]
}
requests.post('http://localhost:8085/webhook', json=payload)