diff --git a/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/polls/Poll.kt b/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/polls/Poll.kt index c0e198528e..dbab464bcd 100644 --- a/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/polls/Poll.kt +++ b/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/polls/Poll.kt @@ -60,8 +60,11 @@ data class QuizPoll( override val options: List, @SerialName(totalVoterCountField) override val votesCount: Int, + /** + * Nullable due to documentation (https://core.telegram.org/bots/api#poll) + */ @SerialName(correctOptionIdField) - val correctOptionId: Int, + val correctOptionId: Int? = null, @SerialName(isClosedField) override val isClosed: Boolean = false, @SerialName(isAnonymousField)