searchCallMessages - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / searchCallMessages

searchCallMessages

suspend fun TelegramFlow.searchCallMessages(fromMessageId: Long, limit: Int, onlyMissed: Boolean): Messages

Suspend function, which searches for call messages. Returns the results in reverse chronological order (i. e., in order of decreasing messageId). For optimal performance the number of returned messages is chosen by the library.

Parameters

fromMessageId - Identifier of the message from which to search; use 0 to get results from the last message.

limit - The maximum number of messages to be returned; up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached.

onlyMissed - If true, returns only messages with missed calls.

Return Messages Contains a list of messages.