Layer 220
AuthCheckRecoveryPassword
Check if the 2 FA recovery code sent using auth. request Password Recovery is valid, before passing it to auth. recover Password.
method
Users
auth.checkRecoveryPassword#d36bf79 code:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Code | string | Code received via email |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CODE_EMPTY | The provided code is empty. |
| 400 | PASSWORD_RECOVERY_EXPIRED | The recovery code has expired. |
Gogram Example
// AuthCheckRecoveryPassword - positional arguments result, err := client.AuthCheckRecoveryPassword("...") if err != nil { // handle error } // result is *tg.Bool