inputMessageReadMetric

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

Constructor schema is available as of layer 224. Switch »

Parameters

Name Type Description
msg_id int ID of the message
view_id long Random non-zero 64-bit ID generated for this exposure
time_in_view_ms int 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 Part of time_in_view_ms accumulated while the user is active
height_to_viewport_ratio_permille int round(max_message_height * 1000 / max_viewport_height), may exceed 1000 when the message is taller than the viewport
seen_range_ratio_permille int round(max_seen_vertical_range * 1000 / max_message_height), clamped to the 0–1000 range

Type

InputMessageReadMetric