Package dev.inmo.tgbotapi.types.polls

Types

ApproximateScheduledCloseInfo
Link copied to clipboard
common
data class ApproximateScheduledCloseInfo(openDuration: TimeSpan, startPoint: DateTime) : ScheduledCloseInfo
ExactScheduledCloseInfo
Link copied to clipboard
common
data class ExactScheduledCloseInfo(closeDateTime: DateTime) : ScheduledCloseInfo
MultipleAnswersPoll
Link copied to clipboard
common
sealed class MultipleAnswersPoll : Poll
Poll
Link copied to clipboard
common
sealed class Poll
PollAnswer
Link copied to clipboard
common
data class PollAnswer(pollId: PollIdentifier, user: User, chosen: List<Int>)
PollOption
Link copied to clipboard
common
sealed class PollOption
QuizPoll
Link copied to clipboard
common
data class QuizPoll(id: PollIdentifier, question: String, options: List<PollOption>, votesCount: Int, correctOptionId: Int?, explanation: String?, explanationEntities: List<TextPart>, isClosed: Boolean, isAnonymous: Boolean, scheduledCloseInfo: ScheduledCloseInfo?) : Poll, ExplainedInput
RegularPoll
Link copied to clipboard
common
data class RegularPoll(id: PollIdentifier, question: String, options: List<PollOption>, votesCount: Int, isClosed: Boolean, isAnonymous: Boolean, allowMultipleAnswers: Boolean, scheduledCloseInfo: ScheduledCloseInfo?) : MultipleAnswersPoll
ScheduledCloseInfo
Link copied to clipboard
common
sealed class ScheduledCloseInfo
SimplePollOption
Link copied to clipboard
common
data class SimplePollOption(text: String, votes: Int) : PollOption
UnknownPollType
Link copied to clipboard
common
data class UnknownPollType : Poll

Functions

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

Properties

asApproximateScheduledCloseInfo
Link copied to clipboard
asExactScheduledCloseInfo
Link copied to clipboard
common