Skip to main content

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

NameTypeRequiredDescription
HashstringyesThe hash from the service notification, for more info click here »
SettingsCodeSettingsyesPhone code settings

Returns

AuthSentCodeClass

Possible errors

CodeTypeDescription
400HASH_INVALIDThe provided hash is invalid.

References