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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user