Raw.account.Password

Raw.account.Password

Configuration for two-factor authorization

account.password#957b50fb flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes pending_reset_date:flags.5?int login_email_pattern:flags.6?string = account.Password;
export namespace Raw {
  export namespace account {
    export class Password {
      constructor(params: {
        hasRecovery?: boolean;
        hasSecureValues?: boolean;
        hasPassword?: boolean;
        currentAlgo?: Raw.TypePasswordKdfAlgo;
        srpB?: Buffer;
        srpId?: bigint;
        hint?: string;
        emailUnconfirmedPattern?: string;
        newAlgo: Raw.TypePasswordKdfAlgo;
        newSecureAlgo: Raw.TypeSecurePasswordKdfAlgo;
        secureRandom: Buffer;
        pendingResetDate?: number;
        loginEmailPattern?: string;
      }) {}
    }
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x957b50fb

Property

  • hasRecovery : boolean or undefined

    Whether the user has a recovery method configured

  • hasSecureValues : boolean or undefined

    Whether telegram passport is enabled

  • hasPassword : boolean or undefined

    Whether the user has a password

  • currentAlgo : Raw.TypePasswordKdfAlgo or undefined

    The kdf algorithm for srp two-factor authentication of the current password

  • srpB : Buffer or undefined

    Srp b param for srp authorization

  • srpId : bigint or undefined

    Srp id param for srp authorization

  • hint : string or undefined

    Text hint for the password

  • emailUnconfirmedPattern : string or undefined

    A password recovery email with the specified pattern is still awaiting verification

  • newAlgo : Raw.TypePasswordKdfAlgo

    The kdf algorithm for srp two-factor authentication to use when creating new passwords

  • newSecureAlgo : Raw.TypeSecurePasswordKdfAlgo

    The kdf algorithm for telegram passport

  • secureRandom : Buffer

    Secure random string

  • pendingResetDate : number or undefined

    The 2fa password will be automatically removed at this date, unless the user cancels the operation

  • loginEmailPattern : string or undefined

    A verified login email with the specified pattern is configured