class Tourmaline::Poll

Overview

This object contains information about a poll.

Included Modules

Defined in:

tourmaline/models/poll.cr

Constructors

Instance Method Summary

Instance methods inherited from module Tourmaline::Model

client : Tourmaline::Client client, client=(client : Tourmaline::Client) client=, client? : Tourmaline::Client | Nil client?, finish_init(client : Tourmaline::Client) finish_init

Constructor Detail

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

[View source]

Instance Method Detail

def allows_multiple_answers : Bool #

[View source]
def anonymous? : Bool #

[View source]
def closed? : Bool #

[View source]
def correct_option_id : Int32 | Nil #

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

[View source]
def id : String #

[View source]
def options : Array(PollOption) #

[View source]
def question : String #

[View source]
def total_voter_count : Int32 #

[View source]
def type : Type #

[View source]