Skip to content

search chats on server

Alexey Kravtsov edited this page May 19, 2020 · 1 revision

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.

Clone this wiki locally