Layer 224
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
BoolGogram Example
// AccountConfirmPasswordEmail - positional arguments result, err := client.AccountConfirmPasswordEmail("Hello, World!") if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CODE_INVALID | Code invalid. |
| 400 | EMAIL_HASH_EXPIRED | Email hash expired. |