class Hamilton::Types::InputPollOption

Overview

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

Included Modules

Defined in:

types/input_poll_option.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def text : String #

Option text, 1-100 characters.


def text=(text : String) #

Option text, 1-100 characters.


def text_entities : Array(Hamilton::Types::MessageEntity) #

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


def text_entities=(text_entities : Array(Hamilton::Types::MessageEntity)) #

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


def text_parse_mode : String | Nil #

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


def text_parse_mode=(text_parse_mode : String | Nil) #

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