set_authentication_phone_number


Description:

public async Ok set_authentication_phone_number (string phone_number, PhoneNumberAuthenticationSettings settings) throws TDLibError

Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword

Parameters:

phone_number

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