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: String, user: User, chosen: List<Int>)
PollOption
Link copied to clipboard
common
sealed class PollOption
QuizPoll
Link copied to clipboard
common
data class QuizPoll(id: String, 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: String, 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

Properties

asExactScheduledCloseInfo
Link copied to clipboard
val Long.asExactScheduledCloseInfo: ExactScheduledCloseInfo