kenken999 commited on
Commit
10b5954
1 Parent(s): e862d86
Files changed (1) hide show
  1. routers/webhook.py +3 -2
routers/webhook.py CHANGED
@@ -124,7 +124,7 @@ async def webhook(request: Request):
124
  link_text = "\r\n<b>チャットボット設定用シート</b>\r\n シート用のアプリはチャットから\r\n @リファペディア\r\n と打ち込むと開きます"
125
  link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
126
  #test_set_lide(subtitle, text)
127
- thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
128
 
129
  import requests
130
  import os
@@ -163,7 +163,8 @@ async def webhook(request: Request):
163
 
164
  print(f"Audio saved as {audio_file_path}")
165
  wavurl = "https://kenken999-fastapi-django-main.hf.space/static/"+audio_file_name
166
- thread_name = send_google_chat_wav(webhook_url, "youtube audiofile", wavurl, link_text, link_url,thmbnail)#thread_name)
 
167
 
168
 
169
 
 
124
  link_text = "\r\n<b>チャットボット設定用シート</b>\r\n シート用のアプリはチャットから\r\n @リファペディア\r\n と打ち込むと開きます"
125
  link_url = "https://docs.google.com/spreadsheets/d/13pqP-Ywo5eRlZBsYX2m3ChARG38EoIYOowFd3cWij1c/edit?gid=283940886#gid=283940886"
126
  #test_set_lide(subtitle, text)
127
+ #thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail)
128
 
129
  import requests
130
  import os
 
163
 
164
  print(f"Audio saved as {audio_file_path}")
165
  wavurl = "https://kenken999-fastapi-django-main.hf.space/static/"+audio_file_name
166
+ #thread_name = send_google_chat_wav(webhook_url, "youtube audiofile", wavurl, link_text, link_url,thmbnail)#thread_name)
167
+ thread_name = send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,thmbnail,wavurl)
168
 
169
 
170