TDLib v0.0.2 TDLib.Method.SetAuthenticationPhoneNumber View Source

Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Returns object_ptr.

NameTypeDescription
phone_numberstringThe phone number of the user, in international format.
allow_flash_callboolPass true if the authentication code may be sent via flash call to the specified phone number.
is_current_phone_numberboolPass true if the phone number is used on the current device. Ignored if allow_flash_call is false.

More details on telegram’s documentation.