InputMessageReadMetric#

class pyrogram.raw.types.InputMessageReadMetric#

Read metric for a single message exposure, describing how long the message was visible in the chat viewport.

Constructor of InputMessageReadMetric.

Details:
  • Layer: 227

  • ID: 402B4495

Parameters:
  • msg_id (int 32-bit) – ID of the message

  • view_id (int 64-bit) – Random non-zero 64-bit ID generated for this exposure

  • time_in_view_ms (int 32-bit) – Total exposure time in milliseconds of at least one pixel of the message, after the 300 ms entry grace period

  • active_time_in_view_ms (int 32-bit) – Part of time_in_view_ms accumulated while the user is active

  • height_to_viewport_ratio_permille (int 32-bit) – round(max_message_height * 1000 / max_viewport_height), may exceed 1000 when the message is taller than the viewport

  • seen_range_ratio_permille (int 32-bit) – round(max_seen_vertical_range * 1000 / max_message_height), clamped to the 0–1000 range