Skip to content

miniproto.errors.AuthKeyNotFound

AuthKeyNotFound(message: str = 'auth key not registered', *, request: object | None = None, context: Mapping[str, Any] | None = None) -> None

Bases: AuthError

Authentication key is invalid, unregistered, or no longer available.

Create an auth-key-not-found failure with status code 401.

Parameters:

  • message (str) – Telegram auth-key failure text.
  • request (object | None) – Optional request attempted with the unavailable key.
  • context (Mapping[str, Any] | None) – Optional secret-safe diagnostic metadata.