Layer 220
AccountConfirmPasswordEmail
Verify an email to use as 2 FA recovery method.
method
Users
account.confirmPasswordEmail#8fdf1920 code:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Code | string | The phone code that was received after setting a recovery email |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CODE_INVALID | Code invalid. |
| 400 | EMAIL_HASH_EXPIRED | Email hash expired. |
Gogram Example
// AccountConfirmPasswordEmail - positional arguments result, err := client.AccountConfirmPasswordEmail("...") if err != nil { // handle error } // result is *tg.Bool