account.password
Configuration for two-factor authorization
type tg.AccountPassword struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
HasRecovery | bool | — | Whether the user has a recovery method configured |
HasSecureValues | bool | — | Whether telegram passport is enabled |
HasPassword | bool | — | Whether the user has a password |
CurrentAlgo | PasswordKdfAlgoClass | — | The KDF algorithm for SRP two-factor authentication of the current password |
SRPB | []byte | — | Srp B param for SRP authorization |
SRPID | int64 | — | Srp ID param for SRP authorization |
Hint | string | — | Text hint for the password |
EmailUnconfirmedPattern | string | — | A password recovery email with the specified pattern is still awaiting verification |
NewAlgo | PasswordKdfAlgoClass | yes | The KDF algorithm for SRP two-factor authentication to use when creating new passwords |
NewSecureAlgo | SecurePasswordKdfAlgoClass | yes | The KDF algorithm for telegram passport |
SecureRandom | []byte | yes | Secure random string |
PendingResetDate | int | — | The 2FA password will be automatically removed at this date, unless the user cancels the operation |
LoginEmailPattern | string | — | A verified login email with the specified pattern is configured |
Returned by
References
- Official documentation
- Generated Go reference
- TL definition:
account.password#957b50fb