telegram api constructor · layer 229 · #ad01d61d

authorization

Logged-in session

definition

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;

parameters

nametypedescription
flags#Flags, see TL conditional fields
currentflags.0?trueWhether this is the current session
official_appflags.1?trueWhether the session is from an official app
password_pendingflags.2?trueWhether the session is still waiting for a 2FA password
encrypted_requests_disabledflags.3?trueWhether this session will accept encrypted chats
call_requests_disabledflags.4?trueWhether this session will accept phone calls
unconfirmedflags.5?trueWhether the session is unconfirmed, see here » for more info.
hashlongIdentifier
device_modelstringDevice model
platformstringPlatform
system_versionstringSystem version
api_idintAPI ID
app_namestringApp name
app_versionstringApp version
date_createdintWhen was the session created
date_activeintWhen was the session last active
ipstringLast known IP
countrystringCountry determined from IP
regionstringRegion determined from IP

type

Authorization

history

present in layers 46–229 · constructor id changed 1×

idlayers
#7bf2e6f646–87
#ad01d61d88–229