Class: TD::Types::InputMessageContent::Document
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::Document
- Defined in:
- lib/tdlib/types/input_message_content/document.rb
Overview
A document message (general file).
Instance Attribute Summary collapse
-
#caption ⇒ TD::Types::FormattedText
Document caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
-
#disable_content_type_detection ⇒ Boolean
Pass true to disable automatic file type detection and send the document as a file.
-
#document ⇒ TD::Types::InputFile
Document to be sent.
-
#thumbnail ⇒ TD::Types::InputThumbnail
Document thumbnail; pass null to skip thumbnail uploading.
Method Summary
Methods inherited from Base
Instance Attribute Details
#caption ⇒ TD::Types::FormattedText
Document caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
11 12 13 |
# File 'lib/tdlib/types/input_message_content/document.rb', line 11 def @caption end |
#disable_content_type_detection ⇒ Boolean
Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.
11 12 13 |
# File 'lib/tdlib/types/input_message_content/document.rb', line 11 def disable_content_type_detection @disable_content_type_detection end |
#document ⇒ TD::Types::InputFile
Document to be sent.
11 12 13 |
# File 'lib/tdlib/types/input_message_content/document.rb', line 11 def document @document end |
#thumbnail ⇒ TD::Types::InputThumbnail
Document thumbnail; pass null to skip thumbnail uploading.
11 12 13 |
# File 'lib/tdlib/types/input_message_content/document.rb', line 11 def thumbnail @thumbnail end |