/// <summary> /// Searches for a specified query in the first name, last name and username of the members of a specified chat. Requires administrator rights in channels /// </summary> public static Task <ChatMembers> SearchChatMembersAsync( this Client client, long chatId = default, string query = default, int limit = default, ChatMembersFilter filter = default) { return(client.ExecuteAsync(new SearchChatMembers { ChatId = chatId, Query = query, Limit = limit, Filter = filter })); }
public SearchMembersAndUsersCollection(IProtoService protoService, long chatId, ChatMembersFilter filter, string query) { _protoService = protoService; _chatId = chatId; _filter = filter; _query = query; _chat = new KeyedList <string, object>(null as string); _local = new KeyedList <string, object>(Strings.Resources.Contacts.ToUpper()); _remote = new KeyedList <string, object>(Strings.Resources.GlobalSearch); Add(_chat); Add(_local); Add(_remote); }