1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-04-08 02:52:27 +00:00

add support of QuizPoll#correctOptionIds

This commit is contained in:
2026-04-06 18:46:08 +06:00
parent a5446b5adb
commit 78c476e4c6
12 changed files with 220 additions and 220 deletions

View File

@@ -23,8 +23,8 @@ val Poll.type: String
val Poll.allows_multiple_answers: Boolean
get() = asMultipleAnswersPoll() ?.allowMultipleAnswers == true
@RiskFeature(RawFieldsUsageWarning)
val Poll.correct_option_id: Int?
get() = asQuizPoll() ?.correctOptionId
val Poll.correct_option_id: List<Int>?
get() = asQuizPoll() ?.correctOptionIds
@RiskFeature(RawFieldsUsageWarning)
val Poll.explanation: String?
get() = asQuizPoll() ?.text