kenken999 commited on
Commit
bbe45b0
1 Parent(s): 82a05a5
Files changed (1) hide show
  1. routers/webhook.py +3 -17
routers/webhook.py CHANGED
@@ -92,23 +92,9 @@ async def webhook(request: Request):
92
  #\r\m
93
  #########################################################################
94
  #user_name,thmbnail#
95
- #subtitle = f""" {user_name}様から下記の質問があります"""
96
- subtitle = f"""<b>Event Type</b>: {event_type}
97
- <b>Webhook Event ID</b>: {webhook_event_id}
98
- <b>Delivery Context</b>: {delivery_context}
99
- <b>Timestamp</b>: {timestamp}
100
- <b>Mode</b>: {mode}
101
- <b>Message Type</b>: {message_type}
102
- <b>Message ID</b>: {message_id}
103
- <b>Text</b>: {message_text}
104
- <b>Quote Token</b>: {quote_token}
105
- <b>Source Type</b>: {source_type}
106
- <b>User ID</b>: {user_id}
107
- <b>Reply Token</b>: {reply_token}
108
- {text}
109
- """
110
-
111
- #subtitle = f"""<b>ユーザーID</b> {user_id}\r\n <b>質問内容</b>\r\n {text}"""
112
  link_text = "\r\n<b>チャットボット設定用シート</b>\r\n シート用のアプリはチャットから\r\n @リファペディア\r\n と打ち込むと開きます"
113
  link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
114
  #test_set_lide(subtitle, text)
 
92
  #\r\m
93
  #########################################################################
94
  #user_name,thmbnail#
95
+ title = f""" {user_name}様から下記の質問があります"""
96
+
97
+ subtitle = f"""<b>ユーザーID</b> {user_id}\r\n <b>質問内容</b>\r\n {text}"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  link_text = "\r\n<b>チャットボット設定用シート</b>\r\n シート用のアプリはチャットから\r\n @リファペディア\r\n と打ち込むと開きます"
99
  link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
100
  #test_set_lide(subtitle, text)