Package dev.inmo.tgbotapi.types.polls

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
interface MultipleAnswersPoll : Poll
Link copied to clipboard
interface Poll
Link copied to clipboard
data class PollAnswer(    val pollId: PollIdentifier,     val user: User,     val chosen: List<Int>) : FromUser
Link copied to clipboard
sealed class PollOption
Link copied to clipboard
object PollOptionSerializer : KSerializer<PollOption>
Link copied to clipboard
object PollSerializer : KSerializer<Poll>
Link copied to clipboard
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
Link copied to clipboard
data class RegularPoll(    val id: PollIdentifier,     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
interface ScheduledCloseInfo
Link copied to clipboard
data class SimplePollOption(val text: String, val votes: Int = 0) : PollOption
Link copied to clipboard
data class UnknownPollType : Poll

Functions

Link copied to clipboard
fun LongSeconds.asApproximateScheduledCloseInfo(startPoint: DateTime): ApproximateScheduledCloseInfo

Properties

Link copied to clipboard
Link copied to clipboard