1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-07-23 16:35:09 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.types.polls/-poll/index.md
2021-03-17 15:18:37 +00:00

8.8 KiB

//docs/dev.inmo.tgbotapi.types.polls/Poll

Poll

[common] sealed class Poll

Properties

Name Summary
id [common] abstract val id: PollIdentifier
isAnonymous [common] abstract val isAnonymous: Boolean
isClosed [common] abstract val isClosed: Boolean
options [common] abstract val options: List<PollOption>
question [common] abstract val question: String
scheduledCloseInfo [common] abstract val scheduledCloseInfo: ScheduledCloseInfo?
votesCount [common] abstract val votesCount: Int

Inheritors

Name
MultipleAnswersPoll
UnknownPollType
QuizPoll

Extensions

Name Summary
asMultipleAnswersPoll [common]
Content
inline fun Poll.asMultipleAnswersPoll(): MultipleAnswersPoll?


asQuizPoll [common]
Content
inline fun Poll.asQuizPoll(): QuizPoll?


asRegularPoll [common]
Content
inline fun Poll.asRegularPoll(): RegularPoll?


asUnknownPollType [common]
Content
inline fun Poll.asUnknownPollType(): UnknownPollType?


createRequest [common]
Content
fun Poll.createRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendPoll


requireMultipleAnswersPoll [common]
Content
inline fun Poll.requireMultipleAnswersPoll(): MultipleAnswersPoll


requireQuizPoll [common]
Content
inline fun Poll.requireQuizPoll(): QuizPoll


requireRegularPoll [common]
Content
inline fun Poll.requireRegularPoll(): RegularPoll


requireUnknownPollType [common]
Content
inline fun Poll.requireUnknownPollType(): UnknownPollType