Improve method name.

This commit is contained in:
levlam 2022-12-26 13:49:00 +03:00
parent 996efb73fe
commit 8267462041
4 changed files with 8 additions and 8 deletions

View File

@ -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

View File

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

View File

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

View File

@ -4855,18 +4855,18 @@ class CliClient final : public Actor {
UserId user_id;
get_args(args, user_id);
send_request(td_api::make_object<td_api::setUserPersonalProfilePhoto>(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<td_api::suggestUserPersonalProfilePhoto>(
send_request(td_api::make_object<td_api::suggestUserProfilePhoto>(
user_id, td_api::make_object<td_api::inputChatPhotoStatic>(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<td_api::suggestUserPersonalProfilePhoto>(
send_request(td_api::make_object<td_api::suggestUserProfilePhoto>(
user_id, td_api::make_object<td_api::inputChatPhotoAnimation>(as_input_file(animation),
to_double(main_frame_timestamp))));
} else if (op == "sh") {