kenken999 commited on
Commit
e862d86
1 Parent(s): 1874162
mysite/interpreter/google_chat.py CHANGED
@@ -49,7 +49,16 @@ def send_google_chat_wav(webhook_url, title, subtitle, link_text, link_url,image
49
  }
50
  ]
51
  }
 
52
 
 
 
 
 
 
 
 
 
53
 
54
 
55
 
 
49
  }
50
  ]
51
  }
52
+ response = requests.post(webhook_url, headers=headers, data=json.dumps(card_message))
53
 
54
+ if response.status_code == 200:
55
+ print("Message posted successfully.")
56
+ else:
57
+ print(f"Failed to post message: {response.status_code}, {response.text}")
58
+ #
59
+ response_data = response.json()
60
+ thread_name = response_data['thread']['name']
61
+ return thread_name
62
 
63
 
64
 
staticfiles/audio_20240707055500.wav ADDED
Binary file (264 kB). View file
 
staticfiles/audio_20240707055614.wav ADDED
Binary file (89.6 kB). View file
 
text.txt CHANGED
@@ -1 +1 @@
1
- 本日の金価格は、13,143円です。
 
1
+ 本日の金価格