lib/telegram/bot/types/poll.rb
# frozen_string_literal: true
module Telegram
module Bot
module Types
class Poll < Base
attribute :id, Types::String
attribute :question, Types::String
attribute :options, Types::Array.of(PollOption)
attribute :total_voter_count, Types::Integer
attribute :is_closed, Types::Bool
attribute :is_anonymous, Types::Bool
attribute :type, Types::String
attribute :allows_multiple_answers, Types::Bool
attribute? :correct_option_id, Types::Integer
attribute? :explanation, Types::String
attribute? :explanation_entities, Types::Array.of(MessageEntity)
attribute? :open_period, Types::Integer
attribute? :close_date, Types::Integer
end
end
end
end