tencent cloud

Feedback

Last updated: 2024-02-07 11:05:43

    Feature Description

    Only locally stored groups can be searched for, such as the list of joined groups and group profiles that have been pulled.

    Searching a Local Group

    Call the GroupSearchGroups API (Details) to search a local group. You can set the search keyword group_search_params_keyword_list and specify the search scope to set whether to search by the userID and groupName fields of a group.
    Sample code:
    // Search for a group by the keyword
    GroupSearchParam param = new GroupSearchParam
    {
    group_search_params_keyword_list = new List<string>
    {
    "Keyword 1"
    },
    group_search_params_field_list = new List<TIMGroupSearchFieldKey>
    {
    TIMGroupSearchFieldKey.kTIMGroupSearchFieldKey_GroupId,
    TIMGroupSearchFieldKey.kTIMGroupSearchFieldKey_GroupName,
    }
    };
    TIMResult res = TencentIMSDK.GroupSearchGroups(param, (int code, string desc, List<GroupDetailInfo> result, string user_data)=>{
    // Process the async logic
    });
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support