SimplePollOption

@Serializable(with = PollOptionSerializer::class)
data class SimplePollOption(val text: String, val textSources: List<TextSource> = emptyList(), val votes: Int = 0) : PollOption

Constructors

Link copied to clipboard
constructor(text: String, textSources: List<TextSource> = emptyList(), votes: Int = 0)

Properties

Link copied to clipboard
@SerialName(value = "text")
open override val text: String
Link copied to clipboard
@SerialName(value = "text_entities")
open override val textSources: List<TextSource>

Full list of TextSources

Link copied to clipboard
@SerialName(value = "voter_count")
open override val votes: Int = 0

Functions

Link copied to clipboard
open override fun asInput(): InputPollOption