auth.authorization #

Contains user authorization info.

Layer 223

auth.authorization#2ea2c0d4 flags:# setup_password_required:flags.1?true otherwise_relogin_days:flags.1?int tmp_sessions:flags.0?int future_auth_token:flags.2?bytes user:User = auth.Authorization;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
setup_password_requiredflags.1?trueSuggests the user to set up a 2-step verification password to be able to log in again
otherwise_relogin_daysflags.1?intIf and only if setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass.
tmp_sessionsflags.0?intNumber of parallel sessions the client may open to the main connection of its home DC to increase throughput; if absent or ≤ 1, a single main session must be used
future_auth_tokenflags.2?bytesA future auth token
userUserInfo on authorized user

Type #

auth.Authorization

Working with Different Data Centers #

How to connect to the closest DC access point for faster interaction with the API, and things to watch out for when developing a client.

User Authorization #

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