account.resendPasswordEmail
Resend the code to verify an email to use as 2FA recovery method.
func (c *Client) AccountResendPasswordEmail(ctx context.Context) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountResendPasswordEmail(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.resendPasswordEmail#7a7f2a15