Sha256: ddb8b4f8c0a344df9f6843457d7c05a2e7e0fb706e5187450394f610d7a65706

Contents?: true

Size: 682 Bytes

Versions: 1

Compression:

Stored size: 682 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class Poll < Base
        attribute :id, String
        attribute :question, String
        attribute :options, Array.of(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.of(MessageEntity)
        attribute :open_period, Integer
        attribute :close_date, Integer
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
telegram-bot-types-0.7.0 lib/telegram/bot/types/poll.rb