The following table describes the features and limitations of each group type:
Feature | Work Group (Work) | Public Group (Public) | Meeting Group (Meeting) | Community Group (Community) | Audio-Video Group (AVChatRoom) |
---|---|---|---|---|---|
Available member roles | Group owner and ordinary member | Group owner, group admin, and ordinary member | Group owner, group admin, and ordinary member | Group owner, group admin, and ordinary member | Group owner and ordinary member |
Requesting to join a group | Not supported | Supported with group owner or group admin approval required | Supported with no approval required | Supported with no approval required | Supported with no approval required |
Joining group via invitation by a member | Supported | Not supported | Not supported | Supported | Not supported |
Group owner quitting group | Supported | Not supported | Not supported | Not supported | Not supported |
Who can modify group profile | Any group member | Group owner and group admin | Group owner and group admin | Group owner and group admin | Group owner |
Who can kick group members out of group | Group owner | Group owner and group admin. Group admin can only remove ordinary group members. | Group members cannot be removed. The same effect can be achieved by muting members. | ||
Who can mute members | Muting members is not supported | Group owner and group admin. Group admin can only mute ordinary group members. | Group owner | ||
Unread count | Supported | Supported | Not supported | Supported | Not supported |
Viewing message history earlier than user's entry time | Not supported | Not supported | Supported | Supported | Not supported |
Retaining message history in the cloud |
|
Not supported | |||
Number of groups |
|
|
|
||
Number of group members |
|
100,000 | Unlimited number of group members |
Note:
- Group types are upgraded in the new SDK version and they are work group (Work), public group (Public), meeting group (Meeting), community group (Community), and audio-video group (AVChatRoom). Private group (Private) and chat room (ChatRoom) in earlier versions (which have Public, Private, ChatRoom, and AVChatRoom groups) correspond to work group (Work) and meeting group (Meeting) in the new version respectively.
- In the Pro Edition or Flagship Edition SDKAppID, the maximum net increase in group count per day is 10,000 for all group types. Free peak group count is 100,000 per month, and you will need to pay for usage not covered by the free quota.
- The community group (Community) feature is supported only in SDK 5.8.1668 enhanced edition or higher. To use the feature, you need to purchase the Flagship Edition package and apply for activation.
- Work groups (Work) and public groups (Public) do not allows group members to view messages sent before they join the group. To enable the feature, submit a change request by referring to Configuration Change Ticket.
If you want to initialize group information (for example, group introduction, group profile photo, and initial group members) when creating a group, call the GroupCreate API. For parameter details, see CreateGroupParam.
TencentIMSDK.GroupCreate(CreateGroupParam,(int code, string desc, string json_param, string user_data)=>{
})
The processes for joining groups of different types are described as follows:
Type | Work Group (Work) | Public Group (Public) | Meeting Group (Meeting) | Community Group (Community) | Audio-Video Group (AVChatRoom) |
---|---|---|---|---|---|
How to join group | Users must be invited to join the group. | users join the group after requests are approved by group owner or admin. | Users can join and quit the group freely. | Users can join and quit the group freely. | Users can join and quit the group freely. |
Meeting groups (Meeting) and audio-video groups (AVChatRoom) can be used for interactive scenarios where users join and exit groups frequently, such as online conferencing and show live streaming. The group joining procedure is therefore the simplest.
After a user successfully joins a group by calling GroupJoin, all group members (including the joined user) receive the GroupTipsEventCallback callback.
Resembling WeChat and WeCom groups, work groups (Work) are suitable for communication in work environments. The interaction pattern is designed to disable proactive group joining and only allows users to be invited to join the group by group members.
A group member calls GroupInviteMember to invite a user to join the group, then all group members (including the inviter) receive the GroupTipsEventCallback callback.
Public groups (Public) are similar to the interest groups and tribes in QQ. Any user can request to join the group, but will not become a member of the group until the request is approved by the group owner or admin. While approval is required by default, the group owner or admin can call the GroupModifyGroupInfo API to set the group joining option (TIMGroupAddOption) to forbid anyone to join, which is tighter, or to disable the approval process, which is more flexible.
Call GroupQuit to quit a group. Then all group members receive the GroupTipsEventCallback callback.
Note:For a public group (Public), meeting group (Meeting), community group (Community), or audio-video group (AVChatRoom), the group owner is not allowed to quit the group but can delete the group.
Call GroupDelete to delete a group. Then all group members receive the GroupTipsEventCallback callback.
Note:
- For a public group (Public), meeting group (Meeting), community group (Community), or audio-video group (AVChatRoom), the group owner can delete the group at any time.
- For a work group (Work), the group owner does not have the permission to delete the group. To delete the group, you must have your service server call the RESTful API.
Call GroupGetJoinedGroupList to get a list of work groups (Work), public groups (Public), meeting groups (Meeting), and community groups (Community) the current user has joined. Audio-video groups (AVChatRoom) will not be included in this list.
Call GroupGetGroupInfoList to get the group profile of one or more groups at a time. To get the group profiles of multiple groups by a single call, pass in multiple groupID
at a time.
Call GroupModifyGroupInfo to modify the group profile. When the modification is completed, all group members receive the GroupTipsEventCallback callback.
Note:
- For work groups (Work), all group members can modify the basic group profile.
- For public groups (Public), meeting groups (Meeting), and community groups (Community), only the group owner and admin can modify the group profile.
- For audio-video groups (AVChatRoom), only the group owner can modify the group profile.
Any group member can call the MsgSetGroupReceiveMessageOpt API to modify the group message receiving option. Available group message receiving options are as follows:
Yes, but since an audio-video group (AVChatRoom) does not support storing message history in the cloud, it cannot pull the messages that were sent when it was disconnected.
Verify the group type:
Meeting groups (Meeting) and audio-video groups (AVChatRoom) are designed for conference and live streaming scenarios respectively, and they do not support the unread count feature.
Was this page helpful?