Authorization

class pyrogram.raw.types.Authorization

Logged-in session.

Constructor type of Authorization.

Details
  • Layer: 126

  • ID: 0xad01d61d

Parameters
  • hash (int 64-bit) – Identifier.

  • device_model (str) – Device model.

  • platform (str) – Platform.

  • system_version (str) – System version.

  • api_id (int 32-bit) – API ID.

  • app_name (str) – App name.

  • app_version (str) – App version.

  • date_created (int 32-bit) – When was the session created.

  • date_active (int 32-bit) – When was the session last active.

  • ip (str) – Last known IP.

  • country (str) – Country determined from IP.

  • region (str) – Region determined from IP.

  • current (bool, optional) – Whether this is the current session.

  • official_app (bool, optional) – Whether the session is from an official app.

  • password_pending (bool, optional) – Whether the session is still waiting for a 2FA password.

Methods

This object can be returned by 1 method:

auth.AcceptLoginToken

Accept QR code login token, logging in the app that generated it.