View Source ExTDLib.Method.SetAuthenticationPhoneNumber (ExTDLib v0.0.4)

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 authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword. Returns object_ptr<Ok>.

NameTypeDescription
phone_numberstringThe phone number of the user, in international format.
settingsphoneNumberAuthenticationSettingsSettings for the authentication of the user's phone number; pass null to use default settings.

More details on telegram's documentation.