Layer 227
AuthAuthorizationObj
Contains user authorization info.
constructor
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
| Name | Type | Description |
|---|---|---|
| SetupPasswordRequired | flags .1? true | Suggests the user to set up a 2-step verification password to be able to log in again |
| OtherwiseReloginDays | flags .1? int | If 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. |
| TmpSessions | flags .0? int | Number 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 |
| FutureAuthToken | flags .2? bytes | A future auth token |
| User | User | Info on authorized user |
Returns
auth.AuthorizationGogram Example
// Creating AuthAuthorizationObj constructor obj := &tg.AuthAuthorizationObj{ SetupPasswordRequired: nil, OtherwiseReloginDays: nil, TmpSessions: nil, FutureAuthToken: nil, User: &tg.User{}, }