Skip to content

Commit ada5332

Browse files
author
pierrick
committed
improve indentations
1 parent 09ddde4 commit ada5332

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

solutions/webhook-chat-app/quickstart.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
def 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(

solutions/webhook-chat-app/thread-reply.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)