kenken999 commited on
Commit
ab865c5
1 Parent(s): 94b677a
mysite/interpreter/google_chat.py CHANGED
@@ -62,7 +62,7 @@ def send_google_chat_wav(webhook_url, title, subtitle, link_text, link_url,image
62
 
63
 
64
 
65
- def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,image_url=None):
66
  headers = {
67
  'Content-Type': 'application/json; charset=UTF-8'
68
  }
@@ -126,7 +126,21 @@ def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,imag
126
  }
127
  }
128
  ]
129
- },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  ]
131
  }
132
  ]
 
62
 
63
 
64
 
65
+ def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,image_url=None,wav_url=None):
66
  headers = {
67
  'Content-Type': 'application/json; charset=UTF-8'
68
  }
 
126
  }
127
  }
128
  ]
129
+ },
130
+ {
131
+ "buttons": [
132
+ {
133
+ "textButton": {
134
+ "text": "音声ファイルを開く",
135
+ "onClick": {
136
+ "openLink": {
137
+ "url": wav_url
138
+ }
139
+ }
140
+ }
141
+ }
142
+ ]
143
+ },
144
  ]
145
  }
146
  ]
staticfiles/audio_20240707064224.wav ADDED
Binary file (65.6 kB). View file
 
staticfiles/audio_20240707064601.wav ADDED
Binary file (65.6 kB). View file