pub async fn view_messages(
chat_id: i64,
message_ids: Vec<i64>,
source: Option<MessageSource>,
force_read: bool,
client_id: i32,
) -> Result<(), Error>Expand description
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). 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)
ยงArguments
chat_id- Chat identifiermessage_ids- The identifiers of the messages being viewedsource- Source of the message view; pass null to guess the source based on chat open stateforce_read- Pass true to mark as read the specified messages even the chat is closedclient_id- The client id to send the request to