Ignore inputMessagePoll.is_closed for non-bots.

GitOrigin-RevId: a83389a7ea330c53e4c578a0d21701f0550844b7
This commit is contained in:
levlam 2020-01-23 03:53:58 +03:00
parent ab8752cd20
commit d2763fdd58

View File

@ -1831,9 +1831,10 @@ static Result<InputMessageContent> create_input_message_content(
UNREACHABLE();
}
bool is_closed = is_bot ? input_poll->is_closed_ : false;
content = make_unique<MessagePoll>(td->poll_manager_->create_poll(
std::move(input_poll->question_), std::move(input_poll->options_), input_poll->is_anonymous_,
allow_multiple_answers, is_quiz, correct_option_id, input_poll->is_closed_));
allow_multiple_answers, is_quiz, correct_option_id, is_closed));
break;
}
default: