Sha256: 67242e71c7e3ee09dc52504ff8fac04dc7d9a657499dd80b13aad70acf467328

Contents?: true

Size: 676 Bytes

Versions: 8

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class Poll < Base
        attribute :id, String
        attribute :question, String
        attribute :options, Array[PollOption]
        attribute :total_voter_count, Integer
        attribute :is_closed, Boolean
        attribute :is_anonymous, Boolean
        attribute :type, String
        attribute :allows_multiple_answers, Boolean
        attribute :correct_option_id, Integer
        attribute :explanation, String
        attribute :explanation_entities, Array[MessageEntity]
        attribute :open_period, Integer
        attribute :close_date, Integer
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
telegram-bot-ruby-0.23.0 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-0.22.0 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-0.21.1 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-0.21.0 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-0.20.0 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-0.19.2 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-0.19.1 lib/telegram/bot/types/poll.rb
telegram-bot-ruby-0.19.0 lib/telegram/bot/types/poll.rb