mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-09-07 03:06:52 +00:00
45 lines
8.8 KiB
Markdown
45 lines
8.8 KiB
Markdown
|
//[docs](../../../index.md)/[dev.inmo.tgbotapi.types.polls](../index.md)/[Poll](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
# Poll
|
||
|
[common] sealed class [Poll](index.md)
|
||
|
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
| Name | Summary |
|
||
|
|---|---|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/Poll/id/#/PointingToDeclaration/"></a>[id](id.md)| <a name="dev.inmo.tgbotapi.types.polls/Poll/id/#/PointingToDeclaration/"></a> [common] abstract val [id](id.md): [PollIdentifier](../../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FPollIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081) <br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/Poll/isAnonymous/#/PointingToDeclaration/"></a>[isAnonymous](is-anonymous.md)| <a name="dev.inmo.tgbotapi.types.polls/Poll/isAnonymous/#/PointingToDeclaration/"></a> [common] abstract val [isAnonymous](is-anonymous.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) <br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/Poll/isClosed/#/PointingToDeclaration/"></a>[isClosed](is-closed.md)| <a name="dev.inmo.tgbotapi.types.polls/Poll/isClosed/#/PointingToDeclaration/"></a> [common] abstract val [isClosed](is-closed.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) <br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/Poll/options/#/PointingToDeclaration/"></a>[options](options.md)| <a name="dev.inmo.tgbotapi.types.polls/Poll/options/#/PointingToDeclaration/"></a> [common] abstract val [options](options.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[PollOption](../-poll-option/index.md)> <br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/Poll/question/#/PointingToDeclaration/"></a>[question](question.md)| <a name="dev.inmo.tgbotapi.types.polls/Poll/question/#/PointingToDeclaration/"></a> [common] abstract val [question](question.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) <br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/Poll/scheduledCloseInfo/#/PointingToDeclaration/"></a>[scheduledCloseInfo](scheduled-close-info.md)| <a name="dev.inmo.tgbotapi.types.polls/Poll/scheduledCloseInfo/#/PointingToDeclaration/"></a> [common] abstract val [scheduledCloseInfo](scheduled-close-info.md): [ScheduledCloseInfo](../-scheduled-close-info/index.md)? <br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/Poll/votesCount/#/PointingToDeclaration/"></a>[votesCount](votes-count.md)| <a name="dev.inmo.tgbotapi.types.polls/Poll/votesCount/#/PointingToDeclaration/"></a> [common] abstract val [votesCount](votes-count.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) <br>|
|
||
|
|
||
|
|
||
|
## Inheritors
|
||
|
|
||
|
| Name |
|
||
|
|---|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/MultipleAnswersPoll///PointingToDeclaration/"></a>[MultipleAnswersPoll](../-multiple-answers-poll/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/UnknownPollType///PointingToDeclaration/"></a>[UnknownPollType](../-unknown-poll-type/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.polls/QuizPoll///PointingToDeclaration/"></a>[QuizPoll](../-quiz-poll/index.md)|
|
||
|
|
||
|
|
||
|
## Extensions
|
||
|
|
||
|
| Name | Summary |
|
||
|
|---|---|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asMultipleAnswersPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[asMultipleAnswersPoll](../../dev.inmo.tgbotapi.extensions.utils/as-multiple-answers-poll.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asMultipleAnswersPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[asMultipleAnswersPoll](../../dev.inmo.tgbotapi.extensions.utils/as-multiple-answers-poll.md)(): [MultipleAnswersPoll](../-multiple-answers-poll/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asQuizPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[asQuizPoll](../../dev.inmo.tgbotapi.extensions.utils/as-quiz-poll.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asQuizPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[asQuizPoll](../../dev.inmo.tgbotapi.extensions.utils/as-quiz-poll.md)(): [QuizPoll](../-quiz-poll/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asRegularPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[asRegularPoll](../../dev.inmo.tgbotapi.extensions.utils/as-regular-poll.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asRegularPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[asRegularPoll](../../dev.inmo.tgbotapi.extensions.utils/as-regular-poll.md)(): [RegularPoll](../-regular-poll/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asUnknownPollType/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[asUnknownPollType](../../dev.inmo.tgbotapi.extensions.utils/as-unknown-poll-type.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asUnknownPollType/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[asUnknownPollType](../../dev.inmo.tgbotapi.extensions.utils/as-unknown-poll-type.md)(): [UnknownPollType](../-unknown-poll-type/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.requests.send.polls//createRequest/dev.inmo.tgbotapi.types.polls.Poll#dev.inmo.tgbotapi.types.ChatIdentifier#kotlin.Boolean#kotlin.Long?#kotlin.Boolean?#dev.inmo.tgbotapi.types.buttons.KeyboardMarkup?/PointingToDeclaration/"></a>[createRequest](../../dev.inmo.tgbotapi.requests.send.polls/create-request.md)| <a name="dev.inmo.tgbotapi.requests.send.polls//createRequest/dev.inmo.tgbotapi.types.polls.Poll#dev.inmo.tgbotapi.types.ChatIdentifier#kotlin.Boolean#kotlin.Long?#kotlin.Boolean?#dev.inmo.tgbotapi.types.buttons.KeyboardMarkup?/PointingToDeclaration/"></a>[common] <br>Content <br>fun [Poll](index.md).[createRequest](../../dev.inmo.tgbotapi.requests.send.polls/create-request.md)(chatId: [ChatIdentifier](../../dev.inmo.tgbotapi.types/-chat-identifier/index.md), disableNotification: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false, replyToMessageId: [MessageIdentifier](../../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FMessageIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)? = null, allowSendingWithoutReply: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = null, replyMarkup: [KeyboardMarkup](../../dev.inmo.tgbotapi.types.buttons/-keyboard-markup/index.md)? = null): [SendPoll](../../dev.inmo.tgbotapi.requests.send.polls/-send-poll/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireMultipleAnswersPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[requireMultipleAnswersPoll](../../dev.inmo.tgbotapi.extensions.utils/require-multiple-answers-poll.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireMultipleAnswersPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[requireMultipleAnswersPoll](../../dev.inmo.tgbotapi.extensions.utils/require-multiple-answers-poll.md)(): [MultipleAnswersPoll](../-multiple-answers-poll/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireQuizPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[requireQuizPoll](../../dev.inmo.tgbotapi.extensions.utils/require-quiz-poll.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireQuizPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[requireQuizPoll](../../dev.inmo.tgbotapi.extensions.utils/require-quiz-poll.md)(): [QuizPoll](../-quiz-poll/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireRegularPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[requireRegularPoll](../../dev.inmo.tgbotapi.extensions.utils/require-regular-poll.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireRegularPoll/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[requireRegularPoll](../../dev.inmo.tgbotapi.extensions.utils/require-regular-poll.md)(): [RegularPoll](../-regular-poll/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireUnknownPollType/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[requireUnknownPollType](../../dev.inmo.tgbotapi.extensions.utils/require-unknown-poll-type.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireUnknownPollType/dev.inmo.tgbotapi.types.polls.Poll#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [Poll](index.md).[requireUnknownPollType](../../dev.inmo.tgbotapi.extensions.utils/require-unknown-poll-type.md)(): [UnknownPollType](../-unknown-poll-type/index.md) <br><br><br>|
|
||
|
|