libtd-ktx / kotlinx.telegram.coroutines / searchChats
searchChats
suspend fun
TelegramFlow
.searchChats(query:
String
?, limit:
Int
):
Chats
Suspend function, which searches for the specified query in the title and username of already known chats, this is an offline request. Returns chats in the order seen in the chat list.
Parameters
query
- Query to search for. If the query is empty, returns up to 20 recently found chats.
limit
- The maximum number of chats to be returned.
Return Chats Represents a list of chats.