Upload 5 files
Browse files
app.py
CHANGED
|
@@ -10,6 +10,10 @@ app = FastAPI()
|
|
| 10 |
def root():
|
| 11 |
return {"message": "Hello from WhatsApp ChatBot"}
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
@app.get("/webhook")
|
| 14 |
async def verify_webhook(request: Request):
|
| 15 |
params = request.query_params
|
|
|
|
| 10 |
def root():
|
| 11 |
return {"message": "Hello from WhatsApp ChatBot"}
|
| 12 |
|
| 13 |
+
@app.get("/ping")
|
| 14 |
+
def ping():
|
| 15 |
+
return {"pong": True}
|
| 16 |
+
|
| 17 |
@app.get("/webhook")
|
| 18 |
async def verify_webhook(request: Request):
|
| 19 |
params = request.query_params
|