auth.signUp
Registers a validated phone number in the system.
Example
TL schema
Parameters
Name | Type | Description |
phone_number | Phone number in the international format | |
phone_code_hash | SMS-message ID | |
first_name | New user first name | |
last_name | New user last name |
Result
Returns an auth.Authorization object with information about the new authorization.
Possible errors
Code | Type | Description |
400 | FIRSTNAME_INVALID | Invalid first name |
400 | INPUT_REQUEST_TOO_LONG | The request is too big |
400 | LASTNAME_INVALID | Invalid last name |
400 | PHONE_CODE_EMPTY | phone_code from a SMS is empty |
400 | PHONE_CODE_EXPIRED | SMS expired |
400 | PHONE_CODE_INVALID | Invalid SMS code was sent |
400 | PHONE_NUMBER_FLOOD | You asked for the code too many times. |
400 | PHONE_NUMBER_INVALID | Invalid phone number |
400 | PHONE_NUMBER_OCCUPIED | The phone number is already in use |
Can bots use this methd ?
yes
Related pages
Last updated