Package-level declarations
Types
Link copied to clipboard
data class ApproximateScheduledCloseInfo(val openDuration: TimeSpan, val startPoint: DateTime = DateTime.now()) : ScheduledCloseInfo
Link copied to clipboard
Link copied to clipboard
data class InputPollOption constructor(val text: String, val parseMode: ParseMode?, val textSources: List<TextSource>) : TextedInput
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class QuizPoll(val id: PollId, val question: String, val textSources: List<TextSource> = emptyList(), val options: List<PollOption>, val votesCount: Int, val correctOptionId: Int? = null, val explanation: String?, val explanationTextSources: List<TextSource> = emptyList(), val isClosed: Boolean = false, val isAnonymous: Boolean = false, val scheduledCloseInfo: ScheduledCloseInfo? = null) : Poll
Link copied to clipboard
data class RegularPoll(val id: PollId, val question: String, val textSources: List<TextSource>, 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
Link copied to clipboard
data class SimplePollOption(val text: String, val textSources: List<TextSource> = emptyList(), val votes: Int = 0) : PollOption
Link copied to clipboard
Functions
Link copied to clipboard
fun LongSeconds.asApproximateScheduledCloseInfo(startPoint: DateTime): ApproximateScheduledCloseInfo