account.sendConfirmPhoneCode
Send confirmation code to cancel account deletion, for more info click here »
func (c *Client) AccountSendConfirmPhoneCode(ctx context.Context, request *AccountSendConfirmPhoneCodeRequest) (AuthSentCodeClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountSendConfirmPhoneCode(ctx, &tg.AccountSendConfirmPhoneCodeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // AuthSentCodeClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Hash | string | yes | The hash from the service notification, for more info click here » |
Settings | CodeSettings | yes | Phone code settings |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | HASH_INVALID | The provided hash is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.sendConfirmPhoneCode#1b3faa88