Skip to content

miniproto.peers.PeerCache

PeerCache(config: ClientConfig, storage: SessionStorage, invoker: PeerInvoker) -> None

Revision-aware session peer cache with local and remote resolution paths.

Bind client configuration, mutable session storage, and raw invocation.

Parameters:

  • config (ClientConfig) – Client configuration whose DC identifies loaded session state.
  • storage (SessionStorage) – Session storage supplying durable auth and peer domains.
  • invoker (PeerInvoker) – Raw Telegram request callable for remote peer resolution.