tencent cloud

All product documents
Chat
Last updated: 2024-09-09 20:15:21
Unity
Last updated: 2024-09-09 20:15:21

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 groupID 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
});

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

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 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon