Package-level declarations

Types

Link copied to clipboard
data class ApproximateScheduledCloseInfo(val openDuration: TimeSpan, val startPoint: DateTime = DateTime.now()) : ScheduledCloseInfo
Link copied to clipboard
data class ExactScheduledCloseInfo(val closeDateTime: DateTime) : ScheduledCloseInfo
Link copied to clipboard
@Serializable(with = PollSerializer::class)
sealed interface MultipleAnswersPoll : Poll
Link copied to clipboard
@Serializable(with = PollSerializer::class)
sealed interface Poll : ReplyInfo.External.ContentVariant
Link copied to clipboard
@Serializable(with = PollAnswer.Companion::class)
sealed interface PollAnswer : FromUser
Link copied to clipboard
@Serializable(with = PollOptionSerializer::class)
sealed class PollOption
Link copied to clipboard
object PollOptionSerializer : KSerializer<PollOption>
Link copied to clipboard
object PollSerializer : KSerializer<Poll>
Link copied to clipboard
@Serializable(with = PollSerializer::class)
data class QuizPoll(val id: PollId, 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
Link copied to clipboard
@Serializable(with = PollSerializer::class)
data class RegularPoll(val id: PollId, val question: String, val options: List<PollOption>, val votesCount: Int, val isClosed: Boolean = false, val isAnonymous: Boolean = false, val allowMultipleAnswers: Boolean = false, val scheduledCloseInfo: ScheduledCloseInfo? = null) : MultipleAnswersPoll
Link copied to clipboard
sealed interface ScheduledCloseInfo
Link copied to clipboard
@Serializable
data class SimplePollOption(val text: String, val votes: Int = 0) : PollOption
Link copied to clipboard
@Serializable
data class UnknownPollType : Poll