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.

NameTypeDescription
phone_numberstringThe new phone number of the user in international format.
allow_flash_callboolPass true if the code can be sent via flash call to the specified phone number.
is_current_phone_numberboolPass true if the phone number is used on the current device. Ignored if allow_flash_call is false.

More details on telegram’s documentation.