lib/tdlib/client_methods.rb
def change_phone_number(phone_number:, settings:)
    broadcast('@type'        => 'changePhoneNumber',
              'phone_number' => phone_number,
              'settings'     => settings)
  end
# 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.
#
# @param phone_number [TD::Types::String] The new phone number of the user in international format.
# @param settings [TD::Types::PhoneNumberAuthenticationSettings] Settings for the authentication of the user's phone
#   number; pass null to use default settings.
# @return [TD::Types::AuthenticationCodeInfo]
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.
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 .
def change_phone_number(phone_number:, settings:)
    broadcast('@type'        => 'changePhoneNumber',
              'phone_number' => phone_number,
              'settings'     => settings)
  end
def change_phone_number ( phone_number : , settings : ) broadcast ( '@type' => 'changePhoneNumber' , 'phone_number' => phone_number , 'settings' => settings ) end
Changes the phone number of the user and sends an authentication code to the user's new phone number.
Changes the phone number of the user and sends an authentication code to the user ' s new phone number .
None
TD::Types::AuthenticationCodeInfo
phone_number
The new phone number of the user in international format.
The new phone number of the user in international format .
settings
Settings for the authentication of the user's phone number; pass null to use default settings.
Settings for the authentication of the user ' s phone number ; pass null to use default settings .