libtd-ktx / kotlinx.telegram.coroutines / searchChatsOnServer
searchChatsOnServer
suspend fun
TelegramFlow
.searchChatsOnServer(query:
String
?, limit:
Int
):
Chats
Suspend function, which searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the chat list.
Parameters
query
- Query to search for.
limit
- The maximum number of chats to be returned.
Return Chats Represents a list of chats.