kenken999 commited on
Commit
19072e9
1 Parent(s): cd841f0
Files changed (1) hide show
  1. mysite/interpreter/google_chat.py +15 -1
mysite/interpreter/google_chat.py CHANGED
@@ -32,7 +32,21 @@ def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url,imag
32
  "textParagraph": {
33
  "text": "<b>{}</b>".format(link_text)
34
  }
35
- },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  ]
37
  }
38
  ]
 
32
  "textParagraph": {
33
  "text": "<b>{}</b>".format(link_text)
34
  }
35
+ },
36
+ {
37
+ "buttons": [
38
+ {
39
+ "textButton": {
40
+ "text": "Open Link",
41
+ "onClick": {
42
+ "openLink": {
43
+ "url": link_url
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ]
49
+ },
50
  ]
51
  }
52
  ]