account.ChangeAuthorizationSettings
- class pyrogram.raw.functions.account.ChangeAuthorizationSettings
Change settings related to a session.
- Details:
Layer:
223ID:
40F48462
- Parameters:
hash (
int64-bit) – Session ID from the authorization constructor, fetchable using account.getAuthorizationsconfirmed (
bool, optional) – If set, confirms a newly logged in session ».encrypted_requests_disabled (
bool, optional) – Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changedcall_requests_disabled (
bool, optional) – Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed
- Returns:
bool
TL Schema
account.changeAuthorizationSettings#40f48462
flags:#
confirmed:flags.3?true
hash:long
encrypted_requests_disabled:flags.0?Bool
call_requests_disabled:flags.1?Bool
= Bool
Parameter Tree
ChangeAuthorizationSettings
├── confirmed →
true (optional)├── hash →
long├── encrypted_requests_disabled →
Bool (optional)└── call_requests_disabled →
Bool (optional)Example
await app.invoke(
ChangeAuthorizationSettings(
confirmed=None,
hash=0,
encrypted_requests_disabled=None,
call_requests_disabled=None,
)
)