tg_cli: clean_photos.
GitOrigin-RevId: 650df5c04eb4ad6dcaa9eea3226f2e16fb68d9e8
This commit is contained in:
parent
b38094e372
commit
74b27edd11
@ -1786,6 +1786,11 @@ class CliClient final : public Actor {
|
||||
as_chat_ids(exclude_chat_ids, ','), to_integer<int32>(chat_ids_limit)));
|
||||
} else if (op == "clean_storage_default") {
|
||||
send_request(make_tl_object<td_api::optimizeStorage>());
|
||||
} else if (op == "clean_photos") {
|
||||
std::vector<tl_object_ptr<td_api::FileType>> types;
|
||||
types.push_back(make_tl_object<td_api::fileTypePhoto>());
|
||||
send_request(
|
||||
make_tl_object<td_api::optimizeStorage>(0, 0, 0, 0, std::move(types), as_chat_ids(""), as_chat_ids(""), 20));
|
||||
} else if (op == "clean_storage") {
|
||||
std::vector<tl_object_ptr<td_api::FileType>> types;
|
||||
types.push_back(make_tl_object<td_api::fileTypeThumbnail>());
|
||||
|
@ -2079,7 +2079,7 @@ void FileManager::on_start_download(QueryId query_id) {
|
||||
|
||||
auto file_id = query->file_id_;
|
||||
auto file_node = get_file_node(file_id);
|
||||
LOG(DEBUG) << "Reseive on_start_download for file " << file_id;
|
||||
LOG(DEBUG) << "Receive on_start_download for file " << file_id;
|
||||
if (!file_node) {
|
||||
return;
|
||||
}
|
||||
@ -2102,7 +2102,7 @@ void FileManager::on_partial_download(QueryId query_id, const PartialLocalFileLo
|
||||
|
||||
auto file_id = query->file_id_;
|
||||
auto file_node = get_file_node(file_id);
|
||||
LOG(DEBUG) << "Reseive on_parial_download for file " << file_id;
|
||||
LOG(DEBUG) << "Receive on_parial_download for file " << file_id;
|
||||
if (!file_node) {
|
||||
return;
|
||||
}
|
||||
@ -2125,7 +2125,7 @@ void FileManager::on_hash(QueryId query_id, string hash) {
|
||||
auto file_id = query->file_id_;
|
||||
|
||||
auto file_node = get_file_node(file_id);
|
||||
LOG(DEBUG) << "Reseive on_hash for file " << file_id;
|
||||
LOG(DEBUG) << "Receive on_hash for file " << file_id;
|
||||
if (!file_node) {
|
||||
return;
|
||||
}
|
||||
@ -2147,7 +2147,7 @@ void FileManager::on_partial_upload(QueryId query_id, const PartialRemoteFileLoc
|
||||
|
||||
auto file_id = query->file_id_;
|
||||
auto file_node = get_file_node(file_id);
|
||||
LOG(DEBUG) << "Reseive on_partial_upload for file " << file_id;
|
||||
LOG(DEBUG) << "Receive on_partial_upload for file " << file_id;
|
||||
if (!file_node) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user