alanchen1115 commited on
Commit
c25ea9a
·
verified ·
1 Parent(s): f67efac

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -33,7 +33,7 @@ def root():
33
  return {"title": "Echo Bot"}
34
 
35
  @app.post("/webhook")
36
- async def callback(request: Request):
37
  # get X-Line-Signature header value
38
  signature = request.headers['X-Line-Signature']
39
  # get request body as text
 
33
  return {"title": "Echo Bot"}
34
 
35
  @app.post("/webhook")
36
+ async def webhook(request: Request):
37
  # get X-Line-Signature header value
38
  signature = request.headers['X-Line-Signature']
39
  # get request body as text