PollOption

@Serializable
data class PollOption(val text: String, val voterCount: Int, val textEntities: List<MessageEntity>? = null)

This object contains information about one answer option in a poll.

Api reference

Constructors

Link copied to clipboard
constructor(text: String, voterCount: Int, textEntities: List<MessageEntity>? = null)

Properties

Link copied to clipboard

Option text, 1-100 characters

Link copied to clipboard

Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts

Link copied to clipboard

Number of users that voted for this option