Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions chat/advanced-service/Main.gs
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,15 @@ function updateMessageAppCred() {
// TODO(developer): Replace SPACE_NAME and MESSAGE_NAME here
const name = 'spaces/SPACE_NAME/messages/MESSAGE_NAME';
const message = {
text: 'Updated with app credential!'
text: 'Text updated with app credential!',
cardsV2 : [{ card: { header: {
title: 'Card updated with app credential!',
imageUrl: 'https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/info/default/24px.svg'
}}}]
};
// The field paths to update. Separate multiple values with commas or use
// `*` to update all field paths.
const updateMask = 'text';
const updateMask = 'text,cardsV2';

// Make the request
const response = Chat.Spaces.Messages.patch(message, name, {
Expand Down
Loading