diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 0ac278966..c62aab562 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -1786,6 +1786,11 @@ class CliClient final : public Actor { as_chat_ids(exclude_chat_ids, ','), to_integer(chat_ids_limit))); } else if (op == "clean_storage_default") { send_request(make_tl_object()); + } else if (op == "clean_photos") { + std::vector> types; + types.push_back(make_tl_object()); + send_request( + make_tl_object(0, 0, 0, 0, std::move(types), as_chat_ids(""), as_chat_ids(""), 20)); } else if (op == "clean_storage") { std::vector> types; types.push_back(make_tl_object()); diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index a1dbeabc7..f060a2f7b 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -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; }