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.
Updatable group chat metadata
The following group chat metadata can be updated:
group_name
: The name of the group chatdescription
: A description of the group chatimage_url
: A URL pointing to an image for the group chatdisappearing_message_settings
: Settings for disappearing messages in the group chat. To learn more about disappearing messages, see Support disappearing messages
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.updateDescription("New Group Description");
Get a group chat image URL
Browser
const groupImageUrl = group.imageUrl;
Update a group chat image URL
Browser
await group.updateImageUrl("newurl.com");