Add sendPoll.hide_results_until_closes.

main
levlam 3 months ago
parent bf800c2c05
commit 8b2df9c56a

@ -12913,11 +12913,12 @@ td::Status Client::process_send_poll_query(PromisedQueryPtr &query) {
int32 close_date = get_integer_arg(query.get(), "close_date", 0);
auto is_closed = to_bool(query->arg("is_closed"));
auto shuffle_options = to_bool(query->arg("shuffle_options"));
do_send_message(
make_object<td_api::inputMessagePoll>(std::move(question), std::move(options), nullptr, is_anonymous,
allows_multiple_answers, allows_revoting, shuffle_options, false,
std::move(poll_type), open_period, close_date, is_closed),
std::move(query));
auto hide_results_until_closes = to_bool(query->arg("hide_results_until_closes"));
do_send_message(make_object<td_api::inputMessagePoll>(std::move(question), std::move(options), nullptr, is_anonymous,
allows_multiple_answers, allows_revoting, shuffle_options,
hide_results_until_closes, std::move(poll_type), open_period,
close_date, is_closed),
std::move(query));
return td::Status::OK();
}

Loading…
Cancel
Save