telegram api method · layer 229 · #bf899aa0

account.setAuthorizationTTL

usable by users

Set time-to-live of current session

definition

account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;

parameters

nametypedescription
authorization_ttl_daysintTime-to-live of current session in days

returns

Bool

errors (4)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400TTL_DAYS_INVALIDThe provided TTL is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
406FRESH_RESET_AUTHORISATION_FORBIDDENYou can't logout other sessions if less than 24 hours have passed since you logged on the current session.

history

present in layers 135–229

idlayers
#bf899aa0135–229