getTopChats - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / getTopChats

getTopChats

suspend fun TelegramFlow.getTopChats(category: TopChatCategory?, limit: Int): Chats

Suspend function, which returns a list of frequently used chats. Supported only if the chat info database is enabled.

Parameters

category - Category of chats to be returned.

limit - The maximum number of chats to be returned; up to 30.

Return Chats Represents a list of chats.