TDLib v0.0.2 TDLib.Method.SetRecoveryEmailAddress View Source
Changes the recovery email address of the user. If a new recovery email address is specified, then the error EMAIL_UNCONFIRMED is returned and the email address will not be changed until the new email has been confirmed. The application should periodically call getPasswordState to check whether the email address has been confirmed. If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.
Returns object_ptr
Name | Type | Description |
---|---|---|
password | string | Password of the current user. |
new_recovery_email_address | string | New recovery email address. |
More details on telegram’s documentation.