Improve method name.
This commit is contained in:
parent
996efb73fe
commit
8267462041
|
@ -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
|
//@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;
|
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
|
//@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
|
||||||
suggestUserPersonalProfilePhoto user_id:int53 photo:InputChatPhoto = Ok;
|
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
|
//@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
|
||||||
|
|
|
@ -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));
|
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();
|
CHECK_IS_USER();
|
||||||
CREATE_OK_REQUEST_PROMISE();
|
CREATE_OK_REQUEST_PROMISE();
|
||||||
contacts_manager_->set_user_profile_photo(UserId(request.user_id_), request.photo_, true, std::move(promise));
|
contacts_manager_->set_user_profile_photo(UserId(request.user_id_), request.photo_, true, std::move(promise));
|
||||||
|
|
|
@ -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::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);
|
void on_request(uint64 id, td_api::searchUserByPhoneNumber &request);
|
||||||
|
|
||||||
|
|
|
@ -4855,18 +4855,18 @@ class CliClient final : public Actor {
|
||||||
UserId user_id;
|
UserId user_id;
|
||||||
get_args(args, user_id);
|
get_args(args, user_id);
|
||||||
send_request(td_api::make_object<td_api::setUserPersonalProfilePhoto>(user_id, nullptr));
|
send_request(td_api::make_object<td_api::setUserPersonalProfilePhoto>(user_id, nullptr));
|
||||||
} else if (op == "suuppp") {
|
} else if (op == "supp") {
|
||||||
UserId user_id;
|
UserId user_id;
|
||||||
string photo;
|
string photo;
|
||||||
get_args(args, user_id, 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))));
|
user_id, td_api::make_object<td_api::inputChatPhotoStatic>(as_input_file(photo))));
|
||||||
} else if (op == "suupppa") {
|
} else if (op == "suppa") {
|
||||||
UserId user_id;
|
UserId user_id;
|
||||||
string animation;
|
string animation;
|
||||||
string main_frame_timestamp;
|
string main_frame_timestamp;
|
||||||
get_args(args, user_id, animation, 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),
|
user_id, td_api::make_object<td_api::inputChatPhotoAnimation>(as_input_file(animation),
|
||||||
to_double(main_frame_timestamp))));
|
to_double(main_frame_timestamp))));
|
||||||
} else if (op == "sh") {
|
} else if (op == "sh") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user