libtd-ktx / kotlinx.telegram.coroutines / searchContacts
searchContacts
suspend fun TelegramFlow.searchContacts(query: String?, limit: Int): Users
Suspend function, which searches for the specified query in the first names, last names and usernames of the known user contacts.
Parameters
query - Query to search for; may be empty to return all contacts.
limit - The maximum number of users to be returned.
Return Users Represents a list of users.