Class: TD::Types::InputMessageContent::Document

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/document.rb

Overview

A document message (general file).

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::FormattedText

Document caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.

Returns:



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

def caption
  @caption
end

#disable_content_type_detectionBoolean

Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.

Returns:

  • (Boolean)

    the current value of disable_content_type_detection



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

def disable_content_type_detection
  @disable_content_type_detection
end

#documentTD::Types::InputFile

Document to be sent.

Returns:



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

def document
  @document
end

#thumbnailTD::Types::InputThumbnail

Document thumbnail; pass null to skip thumbnail uploading.

Returns:



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

def thumbnail
  @thumbnail
end