Sha256: df530060170232dc94f9a0dbbd3efffa6dcbfd33be8fe9a1a8848b1598cf4d57

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class PaidMediaPreview < Base
        attribute :type, Types::String.constrained(eql: 'preview').default('preview')
        attribute? :width, Types::Integer
        attribute? :height, Types::Integer
        attribute? :duration, Types::Integer
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.2.0 lib/telegram/bot/types/paid_media_preview.rb
telegram-bot-ruby-2.1.0 lib/telegram/bot/types/paid_media_preview.rb