lib/tdlib/client_methods.rb
def send_phone_number_verification_code(phone_number:, settings:)
    broadcast('@type'        => 'sendPhoneNumberVerificationCode',
              'phone_number' => phone_number,
              'settings'     => settings)
  end
# Sends a code to verify a phone number to be added to a user's Telegram Passport.
#
# @param phone_number [TD::Types::String] The 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]
Sends a code to verify a phone number to be added to a user's Telegram Passport.
Sends a code to verify a phone number to be added to a user ' s Telegram Passport .
def send_phone_number_verification_code(phone_number:, settings:)
    broadcast('@type'        => 'sendPhoneNumberVerificationCode',
              'phone_number' => phone_number,
              'settings'     => settings)
  end
def send_phone_number_verification_code ( phone_number : , settings : ) broadcast ( '@type' => 'sendPhoneNumberVerificationCode' , 'phone_number' => phone_number , 'settings' => settings ) end
Sends a code to verify a phone number to be added to a user's Telegram Passport.
Sends a code to verify a phone number to be added to a user ' s Telegram Passport .
None
TD::Types::AuthenticationCodeInfo
phone_number
The phone number of the user, in international format.
The 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 .