Add phone_number to authenticationCodeInfo.

GitOrigin-RevId: 3bbf8676c1a1891b84753cc2ca489bcff52c780b
This commit is contained in:
levlam 2018-03-15 19:59:57 +03:00
parent 3b569010aa
commit d96aab7aeb
3 changed files with 4 additions and 3 deletions

View File

@ -56,8 +56,8 @@ authenticationCodeTypeCall length:int32 = AuthenticationCodeType;
authenticationCodeTypeFlashCall pattern:string = 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 //@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 type:AuthenticationCodeType next_type:AuthenticationCodeType timeout:int32 = AuthenticationCodeInfo; authenticationCodeInfo phone_number:string type:AuthenticationCodeType next_type:AuthenticationCodeType timeout:int32 = AuthenticationCodeInfo;
//@class AuthorizationState @description Represents the current authorization state of the client //@class AuthorizationState @description Represents the current authorization state of the client

Binary file not shown.

View File

@ -46,7 +46,8 @@ td_api::object_ptr<td_api::authorizationStateWaitCode> SendCodeHelper::get_autho
td_api::object_ptr<td_api::authenticationCodeInfo> SendCodeHelper::get_authentication_code_info_object() const { td_api::object_ptr<td_api::authenticationCodeInfo> SendCodeHelper::get_authentication_code_info_object() const {
return make_tl_object<td_api::authenticationCodeInfo>( return make_tl_object<td_api::authenticationCodeInfo>(
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<int32>(next_code_timestamp_.in() + 1 - 1e-9), 0)); max(static_cast<int32>(next_code_timestamp_.in() + 1 - 1e-9), 0));
} }