Sha256: 65641ac5ba0023d5712b687c8f39a4edc314e9af83b3213ca85cd11183cc8a59

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

require_relative 'objects'

class TelegramBot::Video <
      Struct.new(:id,
                 :width,
                 :height,
                 :duration,
                 :thumb,
                 :mime_type,
                 :file_size,
                 :caption)

  include TelegramBot::AutoFromMethods

  def self.hash_key_aliases
    {
      :id => :file_id
    }
  end

  def self.extra_types
    {
      thumb: PhotoSize
    }
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
telegram_bot_ruby-0.1.6 lib/telegram_bot/video.rb
telegram_bot_ruby-0.1.5 lib/telegram_bot/video.rb
telegram_bot_ruby-0.1.3 lib/telegram_bot/video.rb
telegram_bot_ruby-0.1.1 lib/telegram_bot/video.rb