File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -741,11 +741,15 @@ function updateMessageAppCred() {
741
741
// TODO(developer): Replace SPACE_NAME and MESSAGE_NAME here
742
742
const name = 'spaces/SPACE_NAME/messages/MESSAGE_NAME' ;
743
743
const message = {
744
- text : 'Updated with app credential!'
744
+ text : 'Text updated with app credential!' ,
745
+ cardsV2 : [ { card : { header : {
746
+ title : 'Card updated with app credential!' ,
747
+ imageUrl : 'https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/info/default/24px.svg'
748
+ } } } ]
745
749
} ;
746
750
// The field paths to update. Separate multiple values with commas or use
747
751
// `*` to update all field paths.
748
- const updateMask = 'text' ;
752
+ const updateMask = 'text,cardsV2 ' ;
749
753
750
754
// Make the request
751
755
const response = Chat . Spaces . Messages . patch ( message , name , {
You can’t perform that action at this time.
0 commit comments