Authorization
- class pyrogram.raw.types.Authorization
Logged-in session
Constructor of
Authorization.- Details:
Layer:
223ID:
AD01D61D
- Parameters:
hash (
int64-bit) – Identifierdevice_model (
str) – Device modelplatform (
str) – Platformsystem_version (
str) – System versionapi_id (
int32-bit) – API IDapp_name (
str) – App nameapp_version (
str) – App versiondate_created (
int32-bit) – When was the session createddate_active (
int32-bit) – When was the session last activeip (
str) – Last known IPcountry (
str) – Country determined from IPregion (
str) – Region determined from IPcurrent (
bool, optional) – Whether this is the current sessionofficial_app (
bool, optional) – Whether the session is from an official apppassword_pending (
bool, optional) – Whether the session is still waiting for a 2FA passwordencrypted_requests_disabled (
bool, optional) – Whether this session will accept encrypted chatscall_requests_disabled (
bool, optional) – Whether this session will accept phone callsunconfirmed (
bool, optional) – Whether the session is unconfirmed, see here » for more info.
- Functions:
This object can be returned by 1 function.
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
true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)longstringstringstringintstringstringintintstringstringstringExample
Authorization(
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",
)