Change settings related to a session.
Method schema is available as of layer 163. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
confirmed | flags.3?true | If set, confirms a newly logged in session ». |
hash | long | Session ID from the authorization constructor, fetchable using account.getAuthorizations |
encrypted_requests_disabled | flags.0?Bool | Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed |
call_requests_disabled | flags.1?Bool | Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed |
Code | Type | Description |
---|---|---|
400 | HASH_INVALID | The provided hash is invalid. |
How to register a user's phone to start using the API.
Logged-in session
Get logged-in sessions