diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 4f4c4244..3eca3d5d 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -56,8 +56,8 @@ authenticationCodeTypeCall length:int32 = AuthenticationCodeType; authenticationCodeTypeFlashCall pattern:string = AuthenticationCodeType; -//@description Information about the authentication code that was sent @type Describes the way the code was sent to the user @next_type Describes the way the next code will be sent to the user; may be null @timeout Timeout before the code should be re-sent, in seconds -authenticationCodeInfo type:AuthenticationCodeType next_type:AuthenticationCodeType timeout:int32 = AuthenticationCodeInfo; +//@description Information about the authentication code that was sent @phone_number A phone number that is being authenticated @type Describes the way the code was sent to the user @next_type Describes the way the next code will be sent to the user; may be null @timeout Timeout before the code should be re-sent, in seconds +authenticationCodeInfo phone_number:string type:AuthenticationCodeType next_type:AuthenticationCodeType timeout:int32 = AuthenticationCodeInfo; //@class AuthorizationState @description Represents the current authorization state of the client diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index 2fb97071..4b7b647b 100644 Binary files a/td/generate/scheme/td_api.tlo and b/td/generate/scheme/td_api.tlo differ diff --git a/td/telegram/AuthManager.cpp b/td/telegram/AuthManager.cpp index 3dae8926..64915de3 100644 --- a/td/telegram/AuthManager.cpp +++ b/td/telegram/AuthManager.cpp @@ -46,7 +46,8 @@ td_api::object_ptr SendCodeHelper::get_autho td_api::object_ptr SendCodeHelper::get_authentication_code_info_object() const { return make_tl_object( - get_authentication_code_type_object(sent_code_info_), get_authentication_code_type_object(next_code_info_), + phone_number_, get_authentication_code_type_object(sent_code_info_), + get_authentication_code_type_object(next_code_info_), max(static_cast(next_code_timestamp_.in() + 1 - 1e-9), 0)); }