Authorization

class pyrogram.raw.base.Authorization

Represents a logged-in session

Constructors:

This base type has 1 constructor available.

Authorization

Logged-in session

Functions:

This object can be returned by 1 function.

auth.AcceptLoginToken

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

TL Schema

authorization#ad01d61d
flags:#
current:flags.0?true
official_app:flags.1?true
password_pending:flags.2?true
encrypted_requests_disabled:flags.3?true
call_requests_disabled:flags.4?true
unconfirmed:flags.5?true
hash:long
device_model:string
platform:string
system_version:string
api_id:int
app_name:string
app_version:string
date_created:int
date_active:int
ip:string
country:string
region:string

= Authorization

Parameter Tree

Authorization
├── currenttrue (optional)
├── official_apptrue (optional)
├── password_pendingtrue (optional)
├── encrypted_requests_disabledtrue (optional)
├── call_requests_disabledtrue (optional)
├── unconfirmedtrue (optional)
├── hashlong
├── device_modelstring
├── platformstring
├── system_versionstring
├── api_idint
├── app_namestring
├── app_versionstring
├── date_createdint
├── date_activeint
├── ipstring
├── countrystring
└── regionstring

Example

Authorization(
    current=None,
    official_app=None,
    password_pending=None,
    encrypted_requests_disabled=None,
    call_requests_disabled=None,
    unconfirmed=None,
    hash=0,
    device_model="text",
    platform="text",
    system_version="text",
    api_id=0,
    app_name="text",
    app_version="text",
    date_created=0,
    date_active=0,
    ip="text",
    country="text",
    region="text",
)