Fix misprints.

This commit is contained in:
levlam 2022-12-28 17:25:51 +03:00
parent 36fc74ea7c
commit 7e1d550870
3 changed files with 8 additions and 8 deletions

View File

@ -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<PassportElementType> = Ok;
sendPassportAuthorizationForm authorization_form_id:int32 types:vector<PassportElementType> = Ok;
//@description Sends phone number confirmation code to handle links of the type internalLinkTypePhoneNumberConfirmation

View File

@ -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));
}

View File

@ -398,7 +398,7 @@ class CliClient final : public Actor {
}
}
void on_update_autorization_state(td_api::object_ptr<td_api::AuthorizationState> &&state) {
void on_update_authorization_state(td_api::object_ptr<td_api::AuthorizationState> &&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<td_api::updateAuthorizationState *>(result.get())->authorization_state_));
break;
case td_api::updateChatLastMessage::ID: {