telegram api method · layer 229 · #aac7b717

auth.signUp

usable by users

Registers a validated phone number in the system.

definition

auth.signUp#aac7b717 flags:# no_joined_notifications:flags.0?true phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization;

parameters

nametypedescription
flags#Flags, see TL conditional fields
no_joined_notificationsflags.0?trueIf set, users on Telegram that have already added phone_number to their contacts will not receive signup notifications about this user.
phone_numberstringPhone number in the international format
phone_code_hashstringSMS-message ID
first_namestringNew user first name
last_namestringNew user last name

returns

auth.Authorization

errors (10)

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.
400FIRSTNAME_INVALIDThe first name is invalid.
400LASTNAME_INVALIDThe last name is invalid.
400PHONE_CODE_EMPTYphone_code is missing.
400PHONE_CODE_EXPIREDThe phone code you provided has expired.
400PHONE_CODE_INVALIDThe provided phone code is invalid.
400PHONE_NUMBER_FLOODYou asked for the code too many times.
400PHONE_NUMBER_INVALIDThe phone number is invalid.
400PHONE_NUMBER_OCCUPIEDThe phone number is already in use.
406PHONE_NUMBER_INVALIDThe phone number is invalid.

history

present in layers 2–229 · constructor id changed 2×

idlayers
#1b0676342–103
#80eee427104–172
#aac7b717173–229