ViewMessages constructor

const ViewMessages({
  1. required int chatId,
  2. required List<int> messageIds,
  3. MessageSource? source,
  4. required bool forceRead,
})

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)

Implementation

const ViewMessages({
  required this.chatId,
  required this.messageIds,
  this.source,
  required this.forceRead,
});