Skip to content

Commit 92dc308

Browse files
author
pierrick
committed
feat: update message with app creds and fix typo
1 parent 002711a commit 92dc308

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

chat/client-libraries/cloud/update_message_app_cred.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,15 @@ def update_message_with_app_cred():
3232
message = {
3333
# Replace SPACE_NAME and MESSAGE_NAME here
3434
"name": "spaces/SPACE_NAME/messages/MESSAGE_NAME",
35-
"text": "Updated with app credential!"
35+
"text": "Text updated with app credential!",
36+
"cards_v2" : [{ "card": { "header": {
37+
"title": 'Card updated with app credential!',
38+
"image_url": 'https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/info/default/24px.svg'
39+
}}}]
3640
},
3741
# The field paths to update. Separate multiple values with commas or use
3842
# `*` to update all field paths.
39-
update_mask = "text"
43+
update_mask = "text,cardsV2"
4044
)
4145

4246
# Make the request

chat/client-libraries/cloud/update_space_user_cred.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def update_space_with_user_cred():
3838
'display_name': 'New space display name'
3939
},
4040
# The field paths to update. Separate multiple values with commas.
41-
update_mask = 'display_name'
41+
update_mask = 'displayName'
4242
)
4343

4444
# Make the request

0 commit comments

Comments
 (0)