class Tourmaline::InputPollOption

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(text : String, text_parse_mode : String | Nil = nil, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity) #

[View source]

Instance Method Detail

def text : String #

Option text, 1-100 characters


[View source]
def text=(text : String) #

Option text, 1-100 characters


[View source]
def text_entities : Array(Tourmaline::MessageEntity) #

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


[View source]
def text_entities=(text_entities : Array(Tourmaline::MessageEntity)) #

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


[View source]
def text_parse_mode : String | Nil #

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


[View source]
def text_parse_mode=(text_parse_mode : String | Nil) #

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


[View source]