QuizPoll

data class QuizPoll(    val id: PollIdentifier,     val question: String,     val options: List<PollOption>,     val votesCount: Int,     val correctOptionId: Int? = null,     val text: String? = null,     val textSources: List<TextSource> = emptyList(),     val isClosed: Boolean = false,     val isAnonymous: Boolean = false,     val scheduledCloseInfo: ScheduledCloseInfo? = null) : Poll, TextedInput

Constructors

Link copied to clipboard
fun QuizPoll(    id: PollIdentifier,     question: String,     options: List<PollOption>,     votesCount: Int,     correctOptionId: Int? = null,     text: String? = null,     textSources: List<TextSource> = emptyList(),     isClosed: Boolean = false,     isAnonymous: Boolean = false,     scheduledCloseInfo: ScheduledCloseInfo? = null)

Properties

Link copied to clipboard
val correctOptionId: Int? = null

Nullable due to documentation (https://core.telegram.org/bots/api#poll)

Link copied to clipboard
open override val id: PollIdentifier
Link copied to clipboard
open override val isAnonymous: Boolean = false
Link copied to clipboard
open override val isClosed: Boolean = false
Link copied to clipboard
open override val options: List<PollOption>
Link copied to clipboard
open override val question: String
Link copied to clipboard
open override val scheduledCloseInfo: ScheduledCloseInfo? = null
Link copied to clipboard
open override val text: String? = null
Link copied to clipboard
open override val textSources: List<TextSource>

Full list of TextSources

Link copied to clipboard
open override val votesCount: Int