Inherits Object.
Represents the current state of 2-step verification.
Public Fields | |
| bool | has_password_ |
| True, if a 2-step verification password is set. | |
| string | password_hint_ |
| Hint for the password; may be empty. | |
| bool | has_recovery_email_address_ |
| True, if a recovery email is set. | |
| bool | has_passport_data_ |
| True, if some Telegram Passport elements were saved. | |
| object_ptr< emailAddressAuthenticationCodeInfo > | recovery_email_address_code_info_ |
| Information about the recovery email address to which the confirmation email was sent; may be null. | |
| string | login_email_address_pattern_ |
| Pattern of the email address set up for logging in. | |
| int32 | pending_reset_date_ |
| If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword. | |
Public Instance Methods | |
| passwordState () | |
| passwordState (bool has_password_, string const &password_hint_, bool has_recovery_email_address_, bool has_passport_data_, object_ptr< emailAddressAuthenticationCodeInfo > &&recovery_email_address_code_info_, string const &login_email_address_pattern_, int32 pending_reset_date_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = 483801128 |
| Identifier uniquely determining a type of the object. | |
| passwordState | ( | ) |
Represents the current state of 2-step verification.
| passwordState | ( | bool | has_password_, |
| string const & | password_hint_, | ||
| bool | has_recovery_email_address_, | ||
| bool | has_passport_data_, | ||
| object_ptr< emailAddressAuthenticationCodeInfo > && | recovery_email_address_code_info_, | ||
| string const & | login_email_address_pattern_, | ||
| int32 | pending_reset_date_ | ||
| ) |
Represents the current state of 2-step verification.
| [in] | has_password_ | True, if a 2-step verification password is set. |
| [in] | password_hint_ | Hint for the password; may be empty. |
| [in] | has_recovery_email_address_ | True, if a recovery email is set. |
| [in] | has_passport_data_ | True, if some Telegram Passport elements were saved. |
| [in] | recovery_email_address_code_info_ | Information about the recovery email address to which the confirmation email was sent; may be null. |
| [in] | login_email_address_pattern_ | Pattern of the email address set up for logging in. |
| [in] | pending_reset_date_ | If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword. |
|
finalvirtual |