account.cancelPasswordEmail
Cancel the code that was sent to verify an email to use as 2FA recovery method.
func (c *Client) AccountCancelPasswordEmail(ctx context.Context) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountCancelPasswordEmail(ctx)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
This method takes no parameters.
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | EMAIL_HASH_EXPIRED | Email hash expired. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.cancelPasswordEmail#c1cbd5b6