Sha256: b6e19c30d1b2a2c83f965c3ed6ba63f285661ddd8ad3126de1d6fd71efa065a3

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

module TD::Types
  # A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, and less than 200 kB in
  #   size.
  #
  # @attr thumbnail [TD::Types::InputFile] Thumbnail file to send.
  #   Sending thumbnails by file_id is currently not supported.
  # @attr width [Integer] Thumbnail width, usually shouldn't exceed 320.
  #   Use 0 if unknown.
  # @attr height [Integer] Thumbnail height, usually shouldn't exceed 320.
  #   Use 0 if unknown.
  class InputThumbnail < Base
    attribute :thumbnail, TD::Types::InputFile
    attribute :width, TD::Types::Integer
    attribute :height, TD::Types::Integer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-ruby-2.2.0 lib/tdlib/types/input_thumbnail.rb
tdlib-ruby-2.1.0 lib/tdlib/types/input_thumbnail.rb