account.changeAuthorizationSettings #

Change settings related to a session.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
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

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400HASH_INVALIDThe provided hash is invalid.

User Authorization #

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

authorization #

Logged-in session

account.getAuthorizations #

Get logged-in sessions