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
interface MultipleAnswersPoll : Poll
Poll
Link copied to clipboard
common
interface 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
PollOptionSerializer
Link copied to clipboard
common
object PollOptionSerializer : KSerializer<PollOption>
PollSerializer
Link copied to clipboard
common
object PollSerializer : KSerializer<Poll>
QuizPoll
Link copied to clipboard
common
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
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
interface 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