inputMessageReadMetric #

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

Layer 223

Constructor schema is available as of layer 224. Switch »

Parameters #

NameTypeDescription
msg_idintID of the message
view_idlongRandom non-zero 64-bit ID generated for this exposure
time_in_view_msintTotal exposure time in milliseconds of at least one pixel of the message, after the 300 ms entry grace period
active_time_in_view_msintPart of time_in_view_ms accumulated while the user is active
height_to_viewport_ratio_permilleintround(max_message_height * 1000 / max_viewport_height), may exceed 1000 when the message is taller than the viewport
seen_range_ratio_permilleintround(max_seen_vertical_range * 1000 / max_message_height), clamped to the 0–1000 range

Type #

InputMessageReadMetric