ChatKtx.viewMessages - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / ChatKtx / viewMessages

viewMessages

open suspend fun Chat.viewMessages(messageIds: LongArray?, forceRead: Boolean): Unit

Suspend function, which informs TDLib that messages are being viewed by the user. Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).

Parameters

messageIds - The identifiers of the messages being viewed.

forceRead - True, if messages in closed chats should be marked as read.