telegram api method · layer 229 · #40f48462

account.changeAuthorizationSettings

usable by users

Change settings related to a session.

definition

account.changeAuthorizationSettings#40f48462 flags:# confirmed:flags.3?true hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;

parameters

nametypedescription
flags#Flags, see TL conditional fields
confirmedflags.3?trueIf set, confirms a newly logged in session ».
hashlongSession ID from the authorization constructor, fetchable using account.getAuthorizations
encrypted_requests_disabledflags.0?BoolWhether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed
call_requests_disabledflags.1?BoolWhether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed

returns

Bool

errors (3)

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.
400HASH_INVALIDThe provided hash is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 135–229

idlayers
#40f48462135–229