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 undefinedWhether the user has a recovery method configured
hasSecureValues
: boolean or undefinedWhether telegram passport is enabled
hasPassword
: boolean or undefinedWhether the user has a password
currentAlgo
: Raw.TypePasswordKdfAlgo or undefinedThe kdf algorithm for srp two-factor authentication of the current password
srpB
: Buffer or undefinedSrp b param for srp authorization
srpId
: bigint or undefinedSrp id param for srp authorization
hint
: string or undefinedText hint for the password
emailUnconfirmedPattern
: string or undefinedA password recovery email with the specified pattern is still awaiting verification
newAlgo
: Raw.TypePasswordKdfAlgoThe kdf algorithm for srp two-factor authentication to use when creating new passwords
newSecureAlgo
: Raw.TypeSecurePasswordKdfAlgoThe kdf algorithm for telegram passport
secureRandom
: BufferSecure random string
pendingResetDate
: number or undefinedThe 2fa password will be automatically removed at this date, unless the user cancels the operation
loginEmailPattern
: string or undefinedA verified login email with the specified pattern is configured