send_phone_number_code


Description:

public async AuthenticationCodeInfo send_phone_number_code (string phone_number, PhoneNumberAuthenticationSettings settings, PhoneNumberCodeType type_) throws TDLibError

Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code

Parameters:

phone_number

The phone number, in international format

settings

Settings for the authentication of the user's phone number; pass null to use default settings

type_

Type of the request for which the code is sent