Class: TD::Types::Document

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

Overview

Describes a document of any type.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#documentTD::Types::File

File containing the document.

Returns:



10
11
12
# File 'lib/tdlib/types/document.rb', line 10

def document
  @document
end

#file_nameTD::Types::String

Original name of the file; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of file_name



10
11
12
# File 'lib/tdlib/types/document.rb', line 10

def file_name
  @file_name
end

#mime_typeTD::Types::String

MIME type of the file; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of mime_type



10
11
12
# File 'lib/tdlib/types/document.rb', line 10

def mime_type
  @mime_type
end

#minithumbnailTD::Types::Minithumbnail?

Document minithumbnail; may be null.

Returns:



10
11
12
# File 'lib/tdlib/types/document.rb', line 10

def minithumbnail
  @minithumbnail
end

#thumbnailTD::Types::Thumbnail?

Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null.

Returns:



10
11
12
# File 'lib/tdlib/types/document.rb', line 10

def thumbnail
  @thumbnail
end