Class: TD::Types::InputInlineQueryResult::Document

Inherits:
TD::Types::InputInlineQueryResult show all
Defined in:
lib/tdlib/types/input_inline_query_result/document.rb

Overview

Represents a link to a file.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#descriptionString

Short description of the result, if known.

Returns:

  • (String)

    the current value of description



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def description
  @description
end

#document_urlString

URL of the file.

Returns:

  • (String)

    the current value of document_url



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def document_url
  @document_url
end

#idString

Unique identifier of the query result.

Returns:

  • (String)

    the current value of id



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def id
  @id
end

#input_message_contentTD::Types::InputMessageContent

The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageDocument, InputMessageLocation, InputMessageVenue or InputMessageContact.

Returns:



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def input_message_content
  @input_message_content
end

#mime_typeString

MIME type of the file content; only "application/pdf" and "application/zip" are currently allowed.

Returns:

  • (String)

    the current value of mime_type



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def mime_type
  @mime_type
end

#reply_markupTD::Types::ReplyMarkup

The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.

Returns:



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def reply_markup
  @reply_markup
end

#thumbnail_heightInteger

Height of the thumbnail.

Returns:

  • (Integer)

    the current value of thumbnail_height



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def thumbnail_height
  @thumbnail_height
end

#thumbnail_urlString

The URL of the file thumbnail, if it exists.

Returns:

  • (String)

    the current value of thumbnail_url



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def thumbnail_url
  @thumbnail_url
end

#thumbnail_widthInteger

Width of the thumbnail.

Returns:

  • (Integer)

    the current value of thumbnail_width



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def thumbnail_width
  @thumbnail_width
end

#titleString

Title of the resulting file.

Returns:

  • (String)

    the current value of title



18
19
20
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18

def title
  @title
end