# dev.inmo.tgbotapi.types.polls

docs

# Package dev.inmo.tgbotapi.types.polls

## Types

ApproximateScheduledCloseInfo
Link copied to clipboard
data class ApproximateScheduledCloseInfo (val openDuration: TimeSpan, val startPoint: DateTime = DateTime.now()) : ScheduledCloseInfo
Content copied to clipboard
ExactScheduledCloseInfo
Link copied to clipboard
data class ExactScheduledCloseInfo (val closeDateTime: DateTime) : ScheduledCloseInfo
Content copied to clipboard
MultipleAnswersPoll
Link copied to clipboard
interface MultipleAnswersPoll : Poll
Content copied to clipboard
Poll
Link copied to clipboard
interface Poll
Content copied to clipboard
PollAnswer
Link copied to clipboard
data class PollAnswer ( val pollId: PollIdentifier , val user: User , val chosen: List < Int >) : FromUser
Content copied to clipboard
PollOption
Link copied to clipboard
sealed class PollOption
Content copied to clipboard
PollOptionSerializer
Link copied to clipboard
object PollOptionSerializer : KSerializer< PollOption >
Content copied to clipboard
PollSerializer
Link copied to clipboard
object PollSerializer : KSerializer< Poll >
Content copied to clipboard
QuizPoll
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
Content copied to clipboard
RegularPoll
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
Content copied to clipboard
ScheduledCloseInfo
Link copied to clipboard
interface ScheduledCloseInfo
Content copied to clipboard
SimplePollOption
Link copied to clipboard
data class SimplePollOption (val text: String , val votes: Int = 0) : PollOption
Content copied to clipboard
UnknownPollType
Link copied to clipboard
data class UnknownPollType : Poll
Content copied to clipboard

## Functions

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

## Properties

asApproximateScheduledCloseInfo
Link copied to clipboard
val LongSeconds . asApproximateScheduledCloseInfo : ApproximateScheduledCloseInfo
Content copied to clipboard
asExactScheduledCloseInfo
Link copied to clipboard
val LongSeconds . asExactScheduledCloseInfo : ExactScheduledCloseInfo
Content copied to clipboard