From 878d16abe69f5b8b2b1b0990f9f6d1d45a9e3783 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 2 Apr 2026 17:23:27 +0300 Subject: [PATCH] Add sendPoll.allow_adding_options. --- telegram-bot-api/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }