viewMessages - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / viewMessages

viewMessages

suspend fun TelegramFlow.viewMessages(chatId: Long, 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

chatId - Chat identifier.

messageIds - The identifiers of the messages being viewed.

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