Layer 220
AuthRequestPasswordRecovery
Request recovery code of a 2 FA password, only for accounts with a recovery email configured.
method
Users
auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;
Returns
auth.PasswordRecoveryPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PASSWORD_EMPTY | The provided password is empty. |
| 400 | PASSWORD_RECOVERY_NA | No email was set, can't recover password via email. |
Gogram Example
// AuthRequestPasswordRecovery - positional arguments result, err := client.AuthRequestPasswordRecovery() if err != nil { // handle error } // result is *tg.AuthPasswordRecovery