The Google Chat API has been updated so that chat members can now have their role set to manager.

This commit is contained in:
Ross Scroggs
2024-04-19 10:05:35 -07:00
parent 5607d659fb
commit 74be07a9ef
7 changed files with 41 additions and 9 deletions

View File

@@ -25512,7 +25512,7 @@ def createChatMember(users):
member = callGAPI(chat.spaces().members(), 'patch',
bailOnInternalError=True,
throwReasons=[GAPI.NOT_FOUND, GAPI.INVALID_ARGUMENT, GAPI.PERMISSION_DENIED, GAPI.INTERNAL_ERROR],
name=name, updateMask='role', body={'role': role})
name=member['name'], updateMask='role', body={'role': role})
if not returnIdOnly:
kvList[-1] = member['name']
_getChatMemberEmail(cd, member)