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 chat
Get a group chat name
Node
const groupName = group.name;
Update a group chat name
Node
await group.updateName("New Group Name");
Get a group chat description
Node
const groupDescription = group.description;
Update a group chat description
Node
await group.updateDescription("New Group Description");
Get a group chat image URL
Node
const groupImageUrl = group.imageUrl;
Update a group chat image URL
Node
await group.updateImageUrl("newurl.com");