Sha256: af125b8110d5d5c5a4c06a262dc5f7d12cd4d21948cb5e41da78f847551aef03

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 Bytes

Contents

module TD::Types
  # Describes an image in JPEG format.
  #
  # @attr type [TD::Types::String] Image type (see https://core.telegram.org/constructor/photoSize).
  # @attr photo [TD::Types::File] Information about the image file.
  # @attr width [Integer] Image width.
  # @attr height [Integer] Image height.
  # @attr progressive_sizes [Array<Integer>] Sizes of progressive JPEG file prefixes, which can be used to
  #   preliminarily show the image.
  class PhotoSize < Base
    attribute :type, TD::Types::String
    attribute :photo, TD::Types::File
    attribute :width, TD::Types::Coercible::Integer
    attribute :height, TD::Types::Coercible::Integer
    attribute :progressive_sizes, TD::Types::Array.of(TD::Types::Coercible::Integer)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/photo_size.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/photo_size.rb