miniproto.updates.state.UpdateCursor
miniproto.updates.state.UpdateCursor
Section titled “miniproto.updates.state.UpdateCursor”UpdateCursor(pts: int = 0, qts: int = 0, seq: int = 0, date: datetime = utc_now(), channel_cursors: tuple[ChannelUpdateCursor, ...] = (), entities: tuple[EntityReference, ...] = (), duplicate_keys: tuple[str, ...] = ()) -> NoneImmutable global and per-channel update state persisted in a session record.
duplicate_keys retains a bounded recent-history window for best-effort duplicate suppression. entities supplies access hashes needed for channel gap recovery.
Attributes:
- pts (
int) – Global persistent timestamp. - qts (
int) – Secret-chat persistent timestamp. - seq (
int) – Global sequence number. - date (
datetime) – Global-state timestamp; aware input retains its timezone and naive input assumes UTC. - channel_cursors (
tuple[ChannelUpdateCursor, …]) – Independent channel PTS states. - entities (
tuple[EntityReference, …]) – Peer references observed while processing updates. - duplicate_keys (
tuple[str, …]) – Recent raw-update identity keys.