Class: TD::Types::InputThumbnail

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/input_thumbnail.rb

Overview

A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in

size.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#heightInteger

Thumbnail height, usually shouldn’t exceed 320. Use 0 if unknown.

Returns:

  • (Integer)

    the current value of height



11
12
13
# File 'lib/tdlib/types/input_thumbnail.rb', line 11

def height
  @height
end

#thumbnailTD::Types::InputFile

Thumbnail file to send. Sending thumbnails by file_id is currently not supported.

Returns:



11
12
13
# File 'lib/tdlib/types/input_thumbnail.rb', line 11

def thumbnail
  @thumbnail
end

#widthInteger

Thumbnail width, usually shouldn’t exceed 320. Use 0 if unknown.

Returns:

  • (Integer)

    the current value of width



11
12
13
# File 'lib/tdlib/types/input_thumbnail.rb', line 11

def width
  @width
end