Spaces:
Running
on
Zero
Running
on
Zero
te
Browse files
mysite/routers/fastapi.py
CHANGED
@@ -93,7 +93,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
93 |
"""
|
94 |
@app.post("/webhook")
|
95 |
async def webhook(request: Request):
|
96 |
-
return
|
97 |
#logger.info("[Start] ====== LINE webhook ======")
|
98 |
body = await request.body()
|
99 |
received_headers = dict(request.headers)
|
@@ -235,7 +235,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
235 |
#user_name,thmbnail#
|
236 |
title = f""" {user_name}様から下記の質問があります"""
|
237 |
subtitle = f"""ユーザーID {user_id}\r\n 質問内容 {text}"""
|
238 |
-
link_text = "
|
239 |
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
240 |
#test_set_lide(subtitle, text)
|
241 |
thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
|
|
|
93 |
"""
|
94 |
@app.post("/webhook")
|
95 |
async def webhook(request: Request):
|
96 |
+
#return
|
97 |
#logger.info("[Start] ====== LINE webhook ======")
|
98 |
body = await request.body()
|
99 |
received_headers = dict(request.headers)
|
|
|
235 |
#user_name,thmbnail#
|
236 |
title = f""" {user_name}様から下記の質問があります"""
|
237 |
subtitle = f"""ユーザーID {user_id}\r\n 質問内容 {text}"""
|
238 |
+
link_text = "分析に必要なデータやプロンプトがあれば下記から登録して下さい"
|
239 |
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
240 |
#test_set_lide(subtitle, text)
|
241 |
thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
|