1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

QuizPoll#correctOptionId now is nullable

This commit is contained in:
InsanusMokrassar 2020-01-23 20:40:56 +06:00
parent 43ef7656d0
commit f4a731940e

View File

@ -60,8 +60,11 @@ data class QuizPoll(
override val options: List<PollOption>,
@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)