From 416db4c79203f56d8a4c58014371c49309339018 Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Wed, 31 Aug 2022 00:09:33 +0200 Subject: Fix #192 --- src/Api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api.cpp b/src/Api.cpp index 9cb7f6e..77e8c0b 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -528,7 +528,7 @@ Message::Ptr Api::sendPoll(std::int64_t chatId, const std::string& question, con args.emplace_back("chat_id", chatId); args.emplace_back("question", question); args.emplace_back("options", _tgTypeParser.parseArray([] (const std::string& option) -> std::string { - return StringTools::urlEncode(option); + return "\"" + StringTools::urlEncode(option) + "\""; }, options)); if (!isAnonymous) { args.emplace_back("is_anonymous", isAnonymous); -- cgit v1.2.3