Skip to main content

account.password

Configuration for two-factor authorization

type tg.AccountPassword struct { /* ... */ }

Fields

NameTypeRequiredDescription
HasRecoveryboolWhether the user has a recovery method configured
HasSecureValuesboolWhether telegram passport is enabled
HasPasswordboolWhether the user has a password
CurrentAlgoPasswordKdfAlgoClassThe KDF algorithm for SRP two-factor authentication of the current password
SRPB[]byteSrp B param for SRP authorization
SRPIDint64Srp ID param for SRP authorization
HintstringText hint for the password
EmailUnconfirmedPatternstringA password recovery email with the specified pattern is still awaiting verification
NewAlgoPasswordKdfAlgoClassyesThe KDF algorithm for SRP two-factor authentication to use when creating new passwords
NewSecureAlgoSecurePasswordKdfAlgoClassyesThe KDF algorithm for telegram passport
SecureRandom[]byteyesSecure random string
PendingResetDateintThe 2FA password will be automatically removed at this date, unless the user cancels the operation
LoginEmailPatternstringA verified login email with the specified pattern is configured

Returned by

References