// Search for group members by the keyword and group ID
GroupMemberSearchParam param = new GroupMemberSearchParam
{
group_search_member_params_groupid_list = new List<string>
{
"group_id"
},
group_search_member_params_keyword_list = new List<string>
{
"Keyword 1"
},
group_search_member_params_field_list = new List<TIMGroupMemberSearchFieldKey>
{
TIMGroupMemberSearchFieldKey.kTIMGroupMemberSearchFieldKey_Identifier,
TIMGroupMemberSearchFieldKey.kTIMGroupMemberSearchFieldKey_NikeName,
TIMGroupMemberSearchFieldKey.kTIMGroupMemberSearchFieldKey_Remark,
TIMGroupMemberSearchFieldKey.kTIMGroupMemberSearchFieldKey_NameCard,
}
};
TIMResult res = TencentIMSDK.GroupSearchGroupMembers(param, (int code, string desc, List<GroupGetOnlineMemberCountResult> result, string user_data)=>{
// Process the async logic
});
Was this page helpful?