struct

Telegram::PollOption

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: PollOption This object contains information about one answer option in a poll.

Constructors

new(text : String, voter_count : Int64, text_entities : Array(MessageEntity) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(text _text = @text, voter_count _voter_count = @voter_count, text_entities _text_entities = @text_entities)
Source
text
text_entities
voter_count