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:
parent
43ef7656d0
commit
f4a731940e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user