Layer 220
AccountSetAuthorizationTtl
Set time-to-live of current session
method
Users
account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| AuthorizationTtlDays | int | Time-to-live of current session in days |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 406 | FRESH_RESET_AUTHORISATION_FORBIDDEN | You can't logout other sessions if less than 24 hours have passed since you logged on the current session. |
| 400 | TTL_DAYS_INVALID | The provided TTL is invalid. |
Gogram Example
// AccountSetAuthorizationTtl - positional arguments result, err := client.AccountSetAuthorizationTtl(0) if err != nil { // handle error } // result is *tg.Bool