docs

# Poll

interface Poll
Content copied to clipboard

## Properties

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

## Inheritors

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

## Extensions

allows_multiple_answers
Link copied to clipboard
val Poll . allows_multiple_answers : Boolean
Content copied to clipboard
asMultipleAnswersPoll
Link copied to clipboard
inline fun Poll . asMultipleAnswersPoll (): MultipleAnswersPoll ?
Content copied to clipboard
asQuizPoll
Link copied to clipboard
inline fun Poll . asQuizPoll (): QuizPoll ?
Content copied to clipboard
asRegularPoll
Link copied to clipboard
inline fun Poll . asRegularPoll (): RegularPoll ?
Content copied to clipboard
asUnknownPollType
Link copied to clipboard
inline fun Poll . asUnknownPollType (): UnknownPollType ?
Content copied to clipboard
close_date
Link copied to clipboard
val Poll . close_date : TelegramDate ?
Content copied to clipboard
correct_option_id
Link copied to clipboard
val Poll . correct_option_id : Int ?
Content copied to clipboard
createRequest
Link copied to clipboard
fun Poll . createRequest ( chatId: ChatIdentifier , disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier ? = null, allowSendingWithoutReply: Boolean ? = null, replyMarkup: KeyboardMarkup ? = null): SendPoll
Content copied to clipboard
explanation
Link copied to clipboard
val Poll . explanation : String ?
Content copied to clipboard
explanation_entities
Link copied to clipboard
val Poll . explanation_entities : TextSourcesList ?
Content copied to clipboard
is_anonymous
Link copied to clipboard
val Poll . is_anonymous : Boolean
Content copied to clipboard
is_closed
Link copied to clipboard
val Poll . is_closed : Boolean
Content copied to clipboard
open_period
Link copied to clipboard
val Poll . open_period : Seconds ?
Content copied to clipboard
requireMultipleAnswersPoll
Link copied to clipboard
inline fun Poll . requireMultipleAnswersPoll (): MultipleAnswersPoll
Content copied to clipboard
requireQuizPoll
Link copied to clipboard
inline fun Poll . requireQuizPoll (): QuizPoll
Content copied to clipboard
requireRegularPoll
Link copied to clipboard
inline fun Poll . requireRegularPoll (): RegularPoll
Content copied to clipboard
requireUnknownPollType
Link copied to clipboard
inline fun Poll . requireUnknownPollType (): UnknownPollType
Content copied to clipboard
total_voter_count
Link copied to clipboard
val Poll . total_voter_count : Int
Content copied to clipboard
type
Link copied to clipboard
val Poll . type : String
Content copied to clipboard
whenMultipleAnswersPoll
Link copied to clipboard
inline fun < T > Poll . whenMultipleAnswersPoll (block: ( MultipleAnswersPoll ) -> T ): T ?
Content copied to clipboard
whenQuizPoll
Link copied to clipboard
inline fun < T > Poll . whenQuizPoll (block: ( QuizPoll ) -> T ): T ?
Content copied to clipboard
whenRegularPoll
Link copied to clipboard
inline fun < T > Poll . whenRegularPoll (block: ( RegularPoll ) -> T ): T ?
Content copied to clipboard
whenUnknownPollType
Link copied to clipboard
inline fun < T > Poll . whenUnknownPollType (block: ( UnknownPollType ) -> T ): T ?
Content copied to clipboard