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
Name | Type | Description |
---|---|---|
phone_number | string | The phone number of the user, in international format. |
allow_flash_call | bool | Pass true if the authentication code may be sent via flash call to the specified phone number. |
is_current_phone_number | bool | Pass true if the phone number is used on the current device. Ignored if allow_flash_call is false. |
More details on telegram’s documentation.