telegram api method · layer 229 · #5f2178c3

account.confirmPhone

usable by users

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

definition

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 »

returns

Bool

errors (4)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CODE_HASH_INVALIDCode hash invalid.
400PHONE_CODE_EMPTYphone_code is missing.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 62–229

idlayers
#5f2178c362–229