Update main.py
Browse files
main.py
CHANGED
|
@@ -36,7 +36,7 @@ def root():
|
|
| 36 |
async def webhook(request: Request, x_line_signature: str = Header(None)):
|
| 37 |
body = await request.body()
|
| 38 |
try:
|
| 39 |
-
line_handler.handle(body.decode(
|
| 40 |
except InvalidSignatureError:
|
| 41 |
raise HTTPException(status_code=400, detail="chatbot handle body error.")
|
| 42 |
return 'OK'
|
|
|
|
| 36 |
async def webhook(request: Request, x_line_signature: str = Header(None)):
|
| 37 |
body = await request.body()
|
| 38 |
try:
|
| 39 |
+
line_handler.handle(body.decode(), x_line_signature)
|
| 40 |
except InvalidSignatureError:
|
| 41 |
raise HTTPException(status_code=400, detail="chatbot handle body error.")
|
| 42 |
return 'OK'
|