TDLib v0.0.2 TDLib.Method.ChangePhoneNumber View Source
Changes the phone number of the user and sends an authentication code to the user’s new phone number. On success, returns information about the sent code.
Returns object_ptr
Name | Type | Description |
---|---|---|
phone_number | string | The new phone number of the user in international format. |
allow_flash_call | bool | Pass true if the code can be sent via flash call to the specified phone number. |
is_current_phone_number | bool | Pass true if the phone number is used on the current device. Ignored if allow_flash_call is false. |
More details on telegram’s documentation.