account.confirmPhone #

Confirm a phone number to cancel account deletion, for more info click here »

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;

Parameters #

NameTypeDescription
phone_code_hashstringPhone code hash, for more info click here »
phone_codestringSMS code, for more info click here »

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CODE_HASH_INVALIDCode hash invalid.
400PHONE_CODE_EMPTYphone_code is missing.

Account deletion #

How to reset an account if the 2FA password was forgotten.