Layer 231
AccountConfirmPhone
Confirm a phone number to cancel account deletion, for more info click here
method
Users
account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| PhoneCodeHash | string | Phone code hash, for more info click here |
| PhoneCode | string | SMS code, for more info click here |
Returns
BoolGogram Example
// phoneCodeHash from account.sendConfirmPhoneCode ok, err := client.AccountConfirmPhone(phoneCodeHash, "12345") if err != nil { log.Fatal(err) } fmt.Println("account deletion cancelled:", ok)
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CODE_HASH_INVALID | Code hash invalid. |
| 400 | PHONE_CODE_EMPTY | phone_code is missing. |