authorization #

Logged-in session

Layer 223

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

User Authorization #

How to register a user's phone to start using the API.

Creating your Telegram Application #

How to get your application identifier and create a new Telegram app.