Sha256: 2858ab5dd0b8568a98381c71071d8ea34212b63554b54ec9b922a16b2398a781

Contents?: true

Size: 769 Bytes

Versions: 4

Compression:

Stored size: 769 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.0.0 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-1.0.0 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-1.0.0.rc1 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-1.0.0.pre lib/telegram/bot/types/poll.rb