Do not hide poll results from bots.

GitOrigin-RevId: 7e44074e372c6487fb0ab0bd53bba64585b5ad07
This commit is contained in:
levlam 2019-03-29 06:00:03 +03:00
parent e51029112c
commit 715783e5bd
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ td_api::object_ptr<td_api::poll> PollManager::get_poll_object(PollId poll_id, co
for (auto &poll_option : poll_options) {
is_voted |= poll_option->is_chosen_;
}
if (!is_voted && !poll->is_closed) {
if (!is_voted && !poll->is_closed && !td_->auth_manager_->is_bot()) {
// hide the voter counts
for (auto &poll_option : poll_options) {
poll_option->voter_count_ = 0;