Class: TD::Types::InputInlineQueryResult::Document
- Inherits:
-
TD::Types::InputInlineQueryResult
- Object
- Dry::Struct
- Base
- TD::Types::InputInlineQueryResult
- TD::Types::InputInlineQueryResult::Document
- Defined in:
- lib/tdlib/types/input_inline_query_result/document.rb
Overview
Represents a link to a file.
Instance Attribute Summary collapse
-
#description ⇒ TD::Types::String
Short description of the result, if known.
-
#document_url ⇒ TD::Types::String
URL of the file.
-
#id ⇒ TD::Types::String
Unique identifier of the query result.
-
#input_message_content ⇒ TD::Types::InputMessageContent
The content of the message to be sent.
-
#mime_type ⇒ TD::Types::String
MIME type of the file content; only “application/pdf” and “application/zip” are currently allowed.
-
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup.
-
#thumbnail_height ⇒ Integer
Height of the thumbnail.
-
#thumbnail_url ⇒ TD::Types::String
The URL of the file thumbnail, if it exists.
-
#thumbnail_width ⇒ Integer
Width of the thumbnail.
-
#title ⇒ TD::Types::String
Title of the resulting file.
Method Summary
Methods inherited from Base
Instance Attribute Details
#description ⇒ TD::Types::String
Short description of the result, if known.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def description @description end |
#document_url ⇒ TD::Types::String
URL of the file.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def document_url @document_url end |
#id ⇒ TD::Types::String
Unique identifier of the query result.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def id @id end |
#input_message_content ⇒ TD::Types::InputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageDocument, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def @input_message_content end |
#mime_type ⇒ TD::Types::String
MIME type of the file content; only “application/pdf” and “application/zip” are currently allowed.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def mime_type @mime_type end |
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def reply_markup @reply_markup end |
#thumbnail_height ⇒ Integer
Height of the thumbnail.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def thumbnail_height @thumbnail_height end |
#thumbnail_url ⇒ TD::Types::String
The URL of the file thumbnail, if it exists.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def thumbnail_url @thumbnail_url end |
#thumbnail_width ⇒ Integer
Width of the thumbnail.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def thumbnail_width @thumbnail_width end |
#title ⇒ TD::Types::String
Title of the resulting file.
18 19 20 |
# File 'lib/tdlib/types/input_inline_query_result/document.rb', line 18 def title @title end |