InputPollOption

@Serializable
data class InputPollOption(val text: String, val textParseMode: ParseMode? = null, val textEntities: List<MessageEntity>? = null)

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

Api reference

Constructors

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

Properties

Link copied to clipboard

Option text, 1-100 characters

Link copied to clipboard

Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode

Link copied to clipboard

Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed