Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files
mysite/routers/fastapi.py
CHANGED
@@ -79,6 +79,9 @@ def setup_webhook_routes(app: FastAPI):
|
|
79 |
body_json = json.loads(body_str)
|
80 |
events = body_json.get("events", [])
|
81 |
|
|
|
|
|
|
|
82 |
for event in events:
|
83 |
if event["type"] == "message" and event["message"]["type"] == "text":
|
84 |
user_id = event["source"]["userId"]
|
|
|
79 |
body_json = json.loads(body_str)
|
80 |
events = body_json.get("events", [])
|
81 |
|
82 |
+
|
83 |
+
return
|
84 |
+
|
85 |
for event in events:
|
86 |
if event["type"] == "message" and event["message"]["type"] == "text":
|
87 |
user_id = event["source"]["userId"]
|