diff options
Diffstat (limited to 'src/Api.cpp')
-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 e13fa7c..ed1f07a 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -914,7 +914,7 @@ Message::Ptr Api::sendPoll(boost::variant<std::int64_t, const std::string&> chat if (allowsMultipleAnswers) { args.emplace_back("allows_multiple_answers", allowsMultipleAnswers); } - if (correctOptionId != 0) { + if (correctOptionId != -1) { args.emplace_back("correct_option_id", correctOptionId); } if (!explanation.empty()) { |