diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 6d60d91..5e387d2 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -12901,7 +12901,7 @@ td::Status Client::process_send_poll_query(PromisedQueryPtr &query) { poll_type = make_object( td::vector{get_integer_arg(query.get(), "correct_option_id", -1)}, std::move(explanation)); } else if (type.empty() || type == "regular") { - poll_type = make_object(false); + poll_type = make_object(to_bool(query->arg("allow_adding_options"))); } else { return td::Status::Error(400, "Unsupported poll type specified"); }