Manage group chat metadata
Group chats can have metadata, like names, descriptions, and images. Metadata can help users more easily identify their group chats. You can set group chat metadata when creating a group chat, and get and update metadata using these methods.
Get a group chat name
Browser
const groupName = group.name;
Update a group chat name
Browser
await group.updateName("New Group Name");
Get a group chat description
Browser
const groupDescription = group.description;
Update a group chat description
Browser
await group.updateGroupDescription("New Group Description");
Get a group chat image URL
Browser
const groupImageUrl = group.imageUrl;
Update a group chat image URL
Node
await group.updateImageUrl("newurl.com");
Node
await group.updateImageUrl("newurl.com");