Skip to content

miniproto.auth.service.AuthService

AuthService(config: ClientConfig, storage: SessionStorage, invoker: RawInvoker) -> None

Run sign-in and data-center authorization flows for one client session.

Parameters:

  • config (ClientConfig) – Client credentials and default data-center configuration.
  • storage (SessionStorage) – Session storage receiving successful authorization state.
  • invoker (RawInvoker) – Callable that sends raw Telegram requests, synchronously or asynchronously.

Bind the client configuration, session storage, and raw-request invoker.

Parameters:

  • config (ClientConfig) – Client credentials and default data-center configuration.
  • storage (SessionStorage) – Mutable session storage for authorization state.
  • invoker (RawInvoker) – Callable that returns or awaits raw Telegram RPC results.