File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
solutions/webhook-chat-app Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2525def main ():
2626 """Google Chat incoming webhook quickstart."""
2727 url = "https://chat.googleapis.com/v1/spaces/SPACE_ID/messages?key=KEY&token=TOKEN"
28- app_message = {"text" : "Hello from a Python script!" }
28+ app_message = {
29+ "text" : "Hello from a Python script!"
30+ }
2931 message_headers = {"Content-Type" : "application/json; charset=UTF-8" }
3032 http_obj = Http ()
3133 response = http_obj .request (
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ def main():
3232 "text" : "Hello from a Python script!" ,
3333 # To start a thread, set threadKey to an arbitratry string.
3434 # To reply to a thread, specify that thread's threadKey value.
35- "thread" : {"threadKey" : "THREAD_KEY_VALUE" },
35+ "thread" : {
36+ "threadKey" : "THREAD_KEY_VALUE"
37+ },
3638 }
3739 message_headers = {"Content-Type" : "application/json; charset=UTF-8" }
3840 http_obj = Http ()
You can’t perform that action at this time.
0 commit comments