Class: TD::Types::Document
- Defined in:
- lib/tdlib/types/document.rb
Overview
Describes a document of any type.
Instance Attribute Summary collapse
-
#document ⇒ TD::Types::File
File containing the document.
-
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
-
#mime_type ⇒ TD::Types::String
MIME type of the file; as defined by the sender.
-
#minithumbnail ⇒ TD::Types::Minithumbnail?
Document minithumbnail; may be null.
-
#thumbnail ⇒ TD::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.
Method Summary
Methods inherited from Base
Instance Attribute Details
#document ⇒ TD::Types::File
File containing the document.
10 11 12 |
# File 'lib/tdlib/types/document.rb', line 10 def document @document end |
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
10 11 12 |
# File 'lib/tdlib/types/document.rb', line 10 def file_name @file_name end |
#mime_type ⇒ TD::Types::String
MIME type of the file; as defined by the sender.
10 11 12 |
# File 'lib/tdlib/types/document.rb', line 10 def mime_type @mime_type end |
#minithumbnail ⇒ TD::Types::Minithumbnail?
Document minithumbnail; may be null.
10 11 12 |
# File 'lib/tdlib/types/document.rb', line 10 def minithumbnail @minithumbnail end |
#thumbnail ⇒ TD::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.
10 11 12 |
# File 'lib/tdlib/types/document.rb', line 10 def thumbnail @thumbnail end |