Raw.account.ChangeAuthorizationSettings

Raw.account.ChangeAuthorizationSettings

Change settings related to a session.

account.changeAuthorizationSettings#40f48462 flags:# confirmed:flags.3?true hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;
export namespace Raw {
  export namespace account {
    export class ChangeAuthorizationSettings {
      constructor(params: {
        confirmed?: boolean;
        hash: bigint;
        encryptedRequestsDisabled?: boolean;
        callRequestsDisabled?: boolean;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x40f48462

Property

  • confirmed : boolean or undefined

    If set, confirms a newly logged in session.

  • hash : bigint

    Session id from the authorization constructor, fetchable using account.getauthorizations

  • encryptedRequestsDisabled : boolean or undefined

    Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed

  • callRequestsDisabled : boolean or undefined

    Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed

Results

boolean