1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-14 04:13:47 +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>, override val options: List<PollOption>,
@SerialName(totalVoterCountField) @SerialName(totalVoterCountField)
override val votesCount: Int, override val votesCount: Int,
/**
* Nullable due to documentation (https://core.telegram.org/bots/api#poll)
*/
@SerialName(correctOptionIdField) @SerialName(correctOptionIdField)
val correctOptionId: Int, val correctOptionId: Int? = null,
@SerialName(isClosedField) @SerialName(isClosedField)
override val isClosed: Boolean = false, override val isClosed: Boolean = false,
@SerialName(isAnonymousField) @SerialName(isAnonymousField)