Skip to content

Commit

Permalink
Don't send updateFileDownloads for bots.
Browse files Browse the repository at this point in the history
  • Loading branch information
AYMENJD authored and levlam committed Oct 5, 2024
1 parent 21e5ce0 commit 09eae44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion td/telegram/DownloadManagerCallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
namespace td {

void DownloadManagerCallback::update_counters(DownloadManager::Counters counters) {
send_closure(td_->actor_id(td_), &Td::send_update, counters.get_update_file_downloads_object());
if (!td_->auth_manager_->is_bot()) {
send_closure(td_->actor_id(td_), &Td::send_update, counters.get_update_file_downloads_object());
}
}

void DownloadManagerCallback::update_file_added(FileId file_id, FileSourceId file_source_id, int32 add_date,
Expand Down

0 comments on commit 09eae44

Please sign in to comment.