diff options
author | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2022-08-31 00:09:33 +0200 |
---|---|---|
committer | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2022-08-31 00:09:33 +0200 |
commit | 416db4c79203f56d8a4c58014371c49309339018 (patch) | |
tree | a154b6ee4809bf46b5d337b6e6267ea8748f282b | |
parent | 4a3f1967ae255b4b9012598a6198fe4c9f17beee (diff) |
Fix #192
-rw-r--r-- | src/Api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string>([] (const std::string& option) -> std::string { - return StringTools::urlEncode(option); + return "\"" + StringTools::urlEncode(option) + "\""; }, options)); if (!isAnonymous) { args.emplace_back("is_anonymous", isAnonymous); |