Developer docs
13. Read receipts, unread marks, scheduled messages, link previews
On this page
13.1 “Seen by” (per-member read receipts)
MessagesService/GetReadParticipants(chat_id, message_id) → [(user_id, date)], most recent
first, plus the referenced users. Only for my own messages (MESSAGE_AUTHOR_REQUIRED), in
private chats and groups with ≤ 100 members (CHAT_TOO_BIG; channels/Saved:
CHAT_TYPE_INVALID), for messages younger than 7 days (MESSAGE_TOO_OLD). The server logs
each advance of a member’s read position (ReadHistory); the read time of message M is the
earliest logged advance with max_id >= M. Privacy: PrivacySettings.hide_read_time — such a
reader is still listed but with date = 0; it is reciprocal (while set, every date I receive is 0).
13.2 Mark as unread
Dialog.unread_mark, set with UpdateDialog{unread_mark} and synced to my other devices as
UserEvent.dialog_settings. Any ReadHistory on the chat (even one that reads nothing new) clears
it and emits dialog_settings again. Clients show a badge dot when unread_count == 0.
13.3 Scheduled messages
SendMessage{schedule_date} (unix ms, ≥ now + 10 s, ≤ now + 366 days; SCHEDULE_DATE_INVALID /
SCHEDULE_DATE_TOO_LATE) or SendMessage{send_when_online} (private chats only,
SEND_WHEN_ONLINE_PRIVATE_ONLY) puts the message into my queue for that chat and returns it
with Message.scheduled = true (id = queue id, date = send time). Max 100 per chat
(SCHEDULE_TOO_MUCH); bots can’t schedule. random_id stays idempotent across the queue and the
delivered message. Manage with GetScheduledHistory, EditScheduledMessage (text and/or time),
DeleteScheduledMessages, SendScheduledMessages (“send now”). Dialog.scheduled_count and
UserEvent.scheduled (ScheduledChanged{messages, deleted_ids, sent_ids, count}) keep my devices
in sync. At the time, the server posts the message as me (normal new_message in the chat log)
and reports its queue id in sent_ids; if I may no longer post there, the entry is dropped (in
deleted_ids, not sent_ids). Delivery is exactly-once across nodes (FOR UPDATE SKIP LOCKED).
13.4 Link previews
The server builds a WebPage from the OpenGraph / Twitter-card metadata of the first URL (or
text link) of a message, unless no_webpage is set or the message has media. The message is sent
immediately; the preview arrives later as a chat_event.edit_message whose media.webpage is set
(edit_date unchanged). Editing the text to another URL replaces the preview; EditMessage{no_webpage}
removes it. GetWebPagePreview(text) serves the composer from the same cache. The preview image is
re-encoded and stored as a Telvoro file, so clients never contact the linked site. Fetching rules
(normative for servers): http/https only, no credentials in URLs, public addresses only (checked
on the dialed address after DNS resolution), at most 3 redirects each re-validated, 3 s total
timeout, 1 MiB body cap, real HTML parser, per-user rate limit, results cached 24 h (negative 1 h).
Generated from docs/PROTOCOL.md in the Telvoro repository. Wire names such as televo.v1 are unchanged.