diff --git a/td/telegram/PollManager.cpp b/td/telegram/PollManager.cpp index df4240b34..f062c5d71 100644 --- a/td/telegram/PollManager.cpp +++ b/td/telegram/PollManager.cpp @@ -1289,12 +1289,14 @@ PollId PollManager::on_get_poll(PollId poll_id, tl_object_ptr recent_voter_user_ids; - for (auto &user_id_int : poll_results->recent_voters_) { - UserId user_id(user_id_int); - if (user_id.is_valid()) { - recent_voter_user_ids.push_back(user_id); - } else { - LOG(ERROR) << "Receive " << user_id << " as recent voter in " << poll_id; + if (!td_->auth_manager_->is_bot()) { + for (auto &user_id_int : poll_results->recent_voters_) { + UserId user_id(user_id_int); + if (user_id.is_valid()) { + recent_voter_user_ids.push_back(user_id); + } else { + LOG(ERROR) << "Receive " << user_id << " as recent voter in " << poll_id; + } } } if (poll->is_anonymous && !recent_voter_user_ids.empty()) {