Skip to content

get top chats

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

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.

Clone this wiki locally