Based on common use cases, Chat provides the following default group types: work group (Work), public group (Public), meeting group (Meeting), audio-video group (AVChatRoom), and Community group (Community). For more information, see Group Types.
You can perform the following operations on groups:
|Create a group||This operation creates a new group. You can specify the group type, name, and a list of users to add to the group. After the group is created, the group ID is returned, which is the unique identifier of the group and can be used to perform other group operations such as message sending and receiving.||The daily limit of net group consumption is 10,000 per app.|
|Transfer a group||This operation transfers a group and changes the group owner to another user.||The app admin can transfer a group through the RESTful API. The only other role that can transfer a group is the group owner.|
|Disband a group||This operation disbands a group that has been created on the app. When the group is disbanded, all group members receive a system message stating that the group has been disbanded.||The app admin can call the RESTful API to disband any group. The permission to disband a group on an app varies depending on the member role:
For a public group (Public), meeting group (Meeting), audio-video group (AVChatRoom), or community group (Community), only the group owner can disband the group.
For a work group (Work), no one in the group can disband the group.
- When you create a group, Chat assigns a default group ID that begins with @TGS#. You can also manually specify a group ID. For more information, see Custom Group IDs.
The group profile includes properties that are specific to a single group, such as the group name, introduction, announcement, and group owner, as well as custom group fields.
|Group Profile Management||Description||Remarks|
|Get the group profile||Pull basic group information. If you want to pull custom information, configure APIs for the custom fields that you want to pull.||Group members obtain the group profile: Group members can obtain the group profile.
Non-members obtain the group profile: Non-members can only obtain the group profile if it is made public.
Obtain the personal profile in the group: users can obtain their own profiles in all groups, or in a single group.
Obtain the profile of a group member: An audio-video group (AVChatRoom) does not store group member information and does not support obtaining the profile of a group member.
|Modify the group profile||You can modify the group name, introduction, announcement, profile photo, group name card, membership request options, group-level custom fields, in-group roles of members, member-level custom fields, and group message receiving options.||Currently, you can configure callbacks for group name, introduction, announcement, and profile photo URL changes for the app in the console. To enable callbacks for changes in other group information, including group-level custom fields, please submit a ticket.|
Group member management involves two aspects:
|Group Member Management||Description||Remarks|
|Obtain group member information||Obtain user profile or other group members’ information||Available information includes the role, joining time, time of last message, group name card, and member-level custom information.|
|Modify a group member’s profile||The group owner, admins, and members can modify group member profiles.||
|Invite to a group||Invite non-members to a group.||
|Apply to join a group||A user proactively applies to join a group through the Chat SDK.||
|Delete a group member||The group owner or a group admin removes a group member from the group||When a group member is removed from the group by the group owner or a group admin, the deleted member receives a system message stating the removal, and other members in the group also receive an event message about the removal.|
|Quit a group||A group member initiates the quit operation||When a group member quits the group, the leaving member receives a system message stating that he/she has left the group, and other members in the group also receive an event message about the member quitting the group.|
|Obtain the list of groups a user has joined||Pull the list of groups that the current user has joined. The returned result contains only part of the basic information.||To obtain detailed group information, use the group members obtain the group profile feature.|
|List of pending group messages||A group’s pending message includes all group operations that require approval.||You can pull the list of pending group messages, report pending read messages, and process pending group messages (approve or reject). For a single user, the list of pending group messages can contain up to 50 messages.|
</ul style="margin:0;"></ul style="margin:0;"></ul style="margin:0;">
Contact our sales team or business advisors to help your business.
Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.
Was this page helpful?