libtd-ktx / kotlinx.telegram.coroutines / searchChatMembers
searchChatMembers
suspend fun TelegramFlow.searchChatMembers(chatId: Long, query: String?, limit: Int, filter: ChatMembersFilter?): ChatMembers
Suspend function, which 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.
Parameters
chatId - Chat identifier.
query - Query to search for.
limit - The maximum number of users to be returned.
filter - The type of users to return. By default, chatMembersFilterMembers.
Return ChatMembers Contains a list of chat members.