Poll

interface Poll

Properties

id
Link copied to clipboard
common
abstract val id: PollIdentifier
isAnonymous
Link copied to clipboard
common
abstract val isAnonymous: Boolean
isClosed
Link copied to clipboard
common
abstract val isClosed: Boolean
options
Link copied to clipboard
common
abstract val options: List<PollOption>
question
Link copied to clipboard
common
abstract val question: String
scheduledCloseInfo
Link copied to clipboard
common
abstract val scheduledCloseInfo: ScheduledCloseInfo?
votesCount
Link copied to clipboard
common
abstract val votesCount: Int

Inheritors

MultipleAnswersPoll
Link copied to clipboard
UnknownPollType
Link copied to clipboard
QuizPoll
Link copied to clipboard

Extensions

asMultipleAnswersPoll
Link copied to clipboard
common
inline fun Poll.asMultipleAnswersPoll(): MultipleAnswersPoll?
asQuizPoll
Link copied to clipboard
common
inline fun Poll.asQuizPoll(): QuizPoll?
asRegularPoll
Link copied to clipboard
common
inline fun Poll.asRegularPoll(): RegularPoll?
asUnknownPollType
Link copied to clipboard
common
inline fun Poll.asUnknownPollType(): UnknownPollType?
createRequest
Link copied to clipboard
common
fun Poll.createRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendPoll
requireMultipleAnswersPoll
Link copied to clipboard
common
inline fun Poll.requireMultipleAnswersPoll(): MultipleAnswersPoll
requireQuizPoll
Link copied to clipboard
common
inline fun Poll.requireQuizPoll(): QuizPoll
requireRegularPoll
Link copied to clipboard
common
inline fun Poll.requireRegularPoll(): RegularPoll
requireUnknownPollType
Link copied to clipboard
common
inline fun Poll.requireUnknownPollType(): UnknownPollType
whenMultipleAnswersPoll
Link copied to clipboard
common
inline fun <T> Poll.whenMultipleAnswersPoll(block: (MultipleAnswersPoll) -> T): T?
whenQuizPoll
Link copied to clipboard
common
inline fun <T> Poll.whenQuizPoll(block: (QuizPoll) -> T): T?
whenRegularPoll
Link copied to clipboard
common
inline fun <T> Poll.whenRegularPoll(block: (RegularPoll) -> T): T?
whenUnknownPollType
Link copied to clipboard
common
inline fun <T> Poll.whenUnknownPollType(block: (UnknownPollType) -> T): T?