diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 7ea0d38e9..a024cb9bc 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -7659,14 +7659,14 @@ checkEmailAddressVerificationCode code:string = Ok; getPassportAuthorizationForm bot_user_id:int53 scope:string public_key:string nonce:string = PassportAuthorizationForm; //@description Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form -//@autorization_form_id Authorization form identifier +//@authorization_form_id Authorization form identifier //@password The 2-step verification password of the current user -getPassportAuthorizationFormAvailableElements autorization_form_id:int32 password:string = PassportElementsWithErrors; +getPassportAuthorizationFormAvailableElements authorization_form_id:int32 password:string = PassportElementsWithErrors; //@description Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused -//@autorization_form_id Authorization form identifier +//@authorization_form_id Authorization form identifier //@types Types of Telegram Passport elements chosen by user to complete the authorization form -sendPassportAuthorizationForm autorization_form_id:int32 types:vector = Ok; +sendPassportAuthorizationForm authorization_form_id:int32 types:vector = Ok; //@description Sends phone number confirmation code to handle links of the type internalLinkTypePhoneNumberConfirmation diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 5f74de6b3..3f734311d 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -7912,7 +7912,7 @@ void Td::on_request(uint64 id, td_api::getPassportAuthorizationFormAvailableElem CLEAN_INPUT_STRING(request.password_); CREATE_REQUEST_PROMISE(); send_closure(secure_manager_, &SecureManager::get_passport_authorization_form_available_elements, - request.autorization_form_id_, std::move(request.password_), std::move(promise)); + request.authorization_form_id_, std::move(request.password_), std::move(promise)); } void Td::on_request(uint64 id, td_api::sendPassportAuthorizationForm &request) { @@ -7924,7 +7924,7 @@ void Td::on_request(uint64 id, td_api::sendPassportAuthorizationForm &request) { } CREATE_OK_REQUEST_PROMISE(); - send_closure(secure_manager_, &SecureManager::send_passport_authorization_form, request.autorization_form_id_, + send_closure(secure_manager_, &SecureManager::send_passport_authorization_form, request.authorization_form_id_, get_secure_value_types_td_api(request.types_), std::move(promise)); } diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index c02341a15..a3723da65 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -398,7 +398,7 @@ class CliClient final : public Actor { } } - void on_update_autorization_state(td_api::object_ptr &&state) { + void on_update_authorization_state(td_api::object_ptr &&state) { authorization_state_ = std::move(state); switch (authorization_state_->get_id()) { case td_api::authorizationStateWaitTdlibParameters::ID: { @@ -991,7 +991,7 @@ class CliClient final : public Actor { break; case td_api::updateAuthorizationState::ID: LOG(WARNING) << result_str; - on_update_autorization_state( + on_update_authorization_state( std::move(static_cast(result.get())->authorization_state_)); break; case td_api::updateChatLastMessage::ID: {