Package dev.inmo.tgbotapi.types.polls

Types

Link copied to clipboard
data class ApproximateScheduledCloseInfo(openDuration: TimeSpan, startPoint: DateTime) : ScheduledCloseInfo
Link copied to clipboard
data class ExactScheduledCloseInfo(closeDateTime: DateTime) : ScheduledCloseInfo
Link copied to clipboard
interface MultipleAnswersPoll : Poll
Link copied to clipboard
interface Poll
Link copied to clipboard
data class PollAnswer(pollId: PollIdentifier, user: User, 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(id: PollIdentifier, question: String, options: List<PollOption>, votesCount: Int, correctOptionId: Int?, text: String?, textSources: List<TextSource>, isClosed: Boolean, isAnonymous: Boolean, scheduledCloseInfo: ScheduledCloseInfo?) : Poll, TextedInput
Link copied to clipboard
data class RegularPoll(id: PollIdentifier, question: String, options: List<PollOption>, votesCount: Int, isClosed: Boolean, isAnonymous: Boolean, allowMultipleAnswers: Boolean, scheduledCloseInfo: ScheduledCloseInfo?) : MultipleAnswersPoll
Link copied to clipboard
interface ScheduledCloseInfo
Link copied to clipboard
data class SimplePollOption(text: String, votes: Int) : 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