PollOptions

@Serializable
data class PollOptions(var isAnonymous: Boolean? = null, var type: PollType? = null, var allowsMultipleAnswers: Boolean? = null, var correctOptionId: Int? = null, var explanation: String? = null, var explanationParseMode: ParseMode? = null, var explanationEntities: List<MessageEntity>? = null, var openPeriod: Duration? = null, var closeDate: Instant? = null, var isClosed: Boolean? = null, var questionParseMode: ParseMode? = null, var disableNotification: Boolean? = null, var replyParameters: ReplyParameters? = null, var protectContent: Boolean? = null, var messageThreadId: Int? = null, var messageEffectId: String? = null, var allowPaidBroadcast: Boolean? = null) : OptionsCommon, ForumProps, MessageEffectIdProp

Constructors

Link copied to clipboard
constructor(isAnonymous: Boolean? = null, type: PollType? = null, allowsMultipleAnswers: Boolean? = null, correctOptionId: Int? = null, explanation: String? = null, explanationParseMode: ParseMode? = null, explanationEntities: List<MessageEntity>? = null, openPeriod: Duration? = null, closeDate: Instant? = null, isClosed: Boolean? = null, questionParseMode: ParseMode? = null, disableNotification: Boolean? = null, replyParameters: ReplyParameters? = null, protectContent: Boolean? = null, messageThreadId: Int? = null, messageEffectId: String? = null, allowPaidBroadcast: Boolean? = null)

Properties

Link copied to clipboard
open override var allowPaidBroadcast: Boolean?
Link copied to clipboard
Link copied to clipboard
@Serializable(with = InstantSerializer::class)
var closeDate: Instant?
Link copied to clipboard
Link copied to clipboard
open override var disableNotification: Boolean?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var messageEffectId: String?
Link copied to clipboard
open override var messageThreadId: Int?
Link copied to clipboard
@Serializable(with = DurationSerializer::class)
var openPeriod: Duration?
Link copied to clipboard
open override var protectContent: Boolean?
Link copied to clipboard
Link copied to clipboard
open override var replyParameters: ReplyParameters?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun replyParameters(messageId: Long, block: ReplyParameters.() -> Unit = {})