SendMessageViewMetrics constructor

const SendMessageViewMetrics({
  1. required int chatId,
  2. required int messageId,
  3. required int timeInViewMs,
  4. required int activeTimeInViewMs,
  5. required int heightToViewportRatioPerMille,
  6. required int seenRangeRatioPerMille,
})

Informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes

Implementation

const SendMessageViewMetrics({
  required this.chatId,
  required this.messageId,
  required this.timeInViewMs,
  required this.activeTimeInViewMs,
  required this.heightToViewportRatioPerMille,
  required this.seenRangeRatioPerMille,
});