Layer 231
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

Bool

Gogram 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.