From d9615bbe41c830eb3941e3f6235d47b6a46e584d Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Wed, 5 Oct 2022 11:35:04 +0200 Subject: sendPoll: update default value (#234) --- src/Api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Api.cpp') 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 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()) { -- cgit v1.2.3