account.Password
- class pyrogram.raw.types.account.Password
Configuration for two-factor authorization
Constructor of
Password.- Details:
Layer:
196ID:
957B50FB
- Parameters:
new_algo (
PasswordKdfAlgo) – The KDF algorithm for SRP two-factor authentication to use when creating new passwordsnew_secure_algo (
SecurePasswordKdfAlgo) – The KDF algorithm for telegram passportsecure_random (
bytes) – Secure random stringhas_recovery (
bool, optional) – Whether the user has a recovery method configuredhas_secure_values (
bool, optional) – Whether telegram passport is enabledhas_password (
bool, optional) – Whether the user has a passwordcurrent_algo (
PasswordKdfAlgo, optional) – The KDF algorithm for SRP two-factor authentication of the current passwordsrp_B (
bytes, optional) – Srp B param for SRP authorizationsrp_id (
int64-bit, optional) – Srp ID param for SRP authorizationhint (
str, optional) – Text hint for the passwordemail_unconfirmed_pattern (
str, optional) – A password recovery email with the specified pattern is still awaiting verificationpending_reset_date (
int32-bit, optional) – The 2FA password will be automatically removed at this date, unless the user cancels the operationlogin_email_pattern (
str, optional) – A verified login email with the specified pattern is configured
- Functions:
This object can be returned by 1 function.
Obtain configuration for two-factor authorization with password