account.changePhone
Change the phone number of the current account
Example
TL schema
Parameters
Name | Type | Description |
phone_number | New phone number | |
phone_code_hash | Phone code hash received when calling account.sendChangePhoneCode | |
phone_code | Phone code received when calling account.sendChangePhoneCode |
Result
Possible errors
Code | Type | Description |
400 | PHONE_CODE_EMPTY | phone_code is missing |
400 | PHONE_NUMBER_INVALID | The phone number is invalid |
Can bots use this methd ?
yes
Related pages
Verify a new phone number to associate to the current account
Last updated