libtd-ktx / kotlinx.telegram.extensions / ChatKtx / getMessageCount
getMessageCount
open suspend fun Chat.getMessageCount(filter: SearchMessagesFilter?, returnLocal: Boolean): Count
Suspend function, which returns approximate number of messages of the specified type in the chat.
Parameters
filter - Filter for message content; searchMessagesFilterEmpty is unsupported in this
function.
returnLocal - If true, returns count that is available locally without sending network
requests, returning -1 if the number of messages is unknown.
Return TdApi.Count Contains a counter.