diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 964fbd6cf..41fc91ba9 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -7042,8 +7042,8 @@ clearImportedContacts = Ok; //@description Changes a personal profile photo of a contact user @user_id User identifier @photo Profile photo to set; pass null to delete the photo; inputChatPhotoPrevious isn't supported in this function setUserPersonalProfilePhoto user_id:int53 photo:InputChatPhoto = Ok; -//@description Suggests a personal profile photo to a user with common messages @user_id User identifier @photo Profile photo to suggest; inputChatPhotoPrevious isn't supported in this function -suggestUserPersonalProfilePhoto user_id:int53 photo:InputChatPhoto = Ok; +//@description Suggests a profile photo to a user with common messages @user_id User identifier @photo Profile photo to suggest; inputChatPhotoPrevious isn't supported in this function +suggestUserProfilePhoto user_id:int53 photo:InputChatPhoto = Ok; //@description Searches a user by their phone number. Returns a 404 error if the user can't be found @phone_number Phone number to search for diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 1a30e618f..1dab1d80f 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -6823,7 +6823,7 @@ void Td::on_request(uint64 id, td_api::setUserPersonalProfilePhoto &request) { contacts_manager_->set_user_profile_photo(UserId(request.user_id_), request.photo_, false, std::move(promise)); } -void Td::on_request(uint64 id, td_api::suggestUserPersonalProfilePhoto &request) { +void Td::on_request(uint64 id, td_api::suggestUserProfilePhoto &request) { CHECK_IS_USER(); CREATE_OK_REQUEST_PROMISE(); contacts_manager_->set_user_profile_photo(UserId(request.user_id_), request.photo_, true, std::move(promise)); diff --git a/td/telegram/Td.h b/td/telegram/Td.h index 75e0dab5b..1172a562b 100644 --- a/td/telegram/Td.h +++ b/td/telegram/Td.h @@ -1054,7 +1054,7 @@ class Td final : public Actor { void on_request(uint64 id, td_api::setUserPersonalProfilePhoto &request); - void on_request(uint64 id, td_api::suggestUserPersonalProfilePhoto &request); + void on_request(uint64 id, td_api::suggestUserProfilePhoto &request); void on_request(uint64 id, td_api::searchUserByPhoneNumber &request); diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index efed6e0da..6f6764897 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -4855,18 +4855,18 @@ class CliClient final : public Actor { UserId user_id; get_args(args, user_id); send_request(td_api::make_object(user_id, nullptr)); - } else if (op == "suuppp") { + } else if (op == "supp") { UserId user_id; string photo; get_args(args, user_id, photo); - send_request(td_api::make_object( + send_request(td_api::make_object( user_id, td_api::make_object(as_input_file(photo)))); - } else if (op == "suupppa") { + } else if (op == "suppa") { UserId user_id; string animation; string main_frame_timestamp; get_args(args, user_id, animation, main_frame_timestamp); - send_request(td_api::make_object( + send_request(td_api::make_object( user_id, td_api::make_object(as_input_file(animation), to_double(main_frame_timestamp)))); } else if (op == "sh") {