RegularPoll

@Serializable(with = PollSerializer::class)
data class RegularPoll(val id: PollId, val question: String, val textSources: List<TextSource>, val options: List<PollOption>, val votesCount: Int, val isClosed: Boolean = false, val isAnonymous: Boolean = false, val allowMultipleAnswers: Boolean = false, val scheduledCloseInfo: ScheduledCloseInfo? = null) : MultipleAnswersPoll

Constructors

Link copied to clipboard
constructor(id: PollId, question: String, textSources: List<TextSource>, options: List<PollOption>, votesCount: Int, isClosed: Boolean = false, isAnonymous: Boolean = false, allowMultipleAnswers: Boolean = false, scheduledCloseInfo: ScheduledCloseInfo? = null)

Properties

Link copied to clipboard
open override val allowMultipleAnswers: Boolean = false
Link copied to clipboard
open override val id: PollId
Link copied to clipboard
open override val isAnonymous: Boolean = false
Link copied to clipboard
open override val isClosed: Boolean = false
Link copied to clipboard
open override val options: List<PollOption>
Link copied to clipboard
open override val question: String
Link copied to clipboard
Link copied to clipboard
open override val scheduledCloseInfo: ScheduledCloseInfo? = null
Link copied to clipboard
open override val text: String
Link copied to clipboard
open override val textSources: List<TextSource>

Full list of TextSources

Link copied to clipboard
open override val votesCount: Int

Functions

Link copied to clipboard
fun Poll.createRequest(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendPoll