Layer 220
AccountSendConfirmPhoneCode
Send confirmation code to cancel account deletion, for more info click here
method
Users
account.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode;
Parameters
| Name | Type | Description |
|---|---|---|
| Hash | string | The hash from the service notification, for more info click here |
| Settings | CodeSettings | Phone code settings |
Returns
auth.SentCodePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | HASH_INVALID | The provided hash is invalid. |
Gogram Example
// AccountSendConfirmPhoneCode - positional arguments result, err := client.AccountSendConfirmPhoneCode("...", &tg.CodeSettings{}) if err != nil { // handle error } // result is *tg.AuthSentCode