Sha256: d985f84f9c2151f946d839db681b34b9b43bab802de14a853a3a7aa8c4622dd2

Contents?: true

Size: 301 Bytes

Versions: 4

Compression:

Stored size: 301 Bytes

Contents

require_relative 'objects'

class TelegramBot::Document <
      Struct.new(:id, :thumb, :file_name, :meme_type, :file_size)
  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/document.rb
telegram_bot_ruby-0.1.5 lib/telegram_bot/document.rb
telegram_bot_ruby-0.1.3 lib/telegram_bot/document.rb
telegram_bot_ruby-0.1.1 lib/telegram_bot/document.rb