class TelegramBot::Poll

Included Modules

Defined in:

telegram_bot/types/poll.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

Instance Method Detail

def allows_multiple_answers=(allows_multiple_answers : Bool) #

def allows_multiple_answers? : Bool #

def allows_revoting=(allows_revoting : Bool | Nil) #

def allows_revoting? : Bool | Nil #

def close_date : Int32 | Nil #

def close_date=(close_date : Int32 | Nil) #

def correct_option_ids : Array(Int32) | Nil #

def correct_option_ids=(correct_option_ids : Array(Int32) | Nil) #

def country_codes : Array(String) | Nil #

def country_codes=(country_codes : Array(String) | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def description_entities : Array(MessageEntity) | Nil #

def description_entities=(description_entities : Array(MessageEntity) | Nil) #

def explanation : String | Nil #

def explanation=(explanation : String | Nil) #

def explanation_entities : Array(MessageEntity) | Nil #

def explanation_entities=(explanation_entities : Array(MessageEntity) | Nil) #

def explanation_media : PollMedia | Nil #

def explanation_media=(explanation_media : PollMedia | Nil) #

def id : String #

def id=(id : String) #

def is_anonymous=(is_anonymous : Bool) #

def is_anonymous? : Bool #

def is_closed=(is_closed : Bool) #

def is_closed? : Bool #

def media : PollMedia | Nil #

def media=(media : PollMedia | Nil) #

def members_only=(members_only : Bool | Nil) #

def members_only? : Bool | Nil #

def open_period : Int32 | Nil #

def open_period=(open_period : Int32 | Nil) #

def options : Array(PollOption) #

def options=(options : Array(PollOption)) #

def question : String #

def question=(question : String) #

def question_entities : Array(MessageEntity) | Nil #

def question_entities=(question_entities : Array(MessageEntity) | Nil) #

def total_voter_count : Int32 #

def total_voter_count=(total_voter_count : Int32) #

def type : String #

def type=(type : String) #