Skip to content

miniproto.updates.manager.UpdateManager.sync_state

miniproto.updates.manager.UpdateManager.sync_state

Section titled “miniproto.updates.manager.UpdateManager.sync_state”
sync_state() -> UpdateCursor

Fetch Telegram’s current global update state and persist it atomically.

Returns:

  • UpdateCursor – The loaded cursor after replacing its global PTS, QTS, sequence, and date fields.

Raises:

  • TypeError – If updates.getState does not return updates.State.
  • Exception – Propagates RPC and session-storage failures.