account.ChangeAuthorizationSettings

class pyrogram.raw.functions.account.ChangeAuthorizationSettings

Change settings related to a session.

Details:
  • Layer: 223

  • ID: 40F48462

Parameters:
  • hash (int 64-bit) – Session ID from the authorization constructor, fetchable using account.getAuthorizations

  • confirmed (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 changed

  • call_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
├── confirmedtrue (optional)
├── hashlong
├── encrypted_requests_disabledBool (optional)
└── call_requests_disabledBool (optional)

Example

await app.invoke(
    ChangeAuthorizationSettings(
        confirmed=None,
        hash=0,
        encrypted_requests_disabled=None,
        call_requests_disabled=None,
    )
)