Class: TD::Types::InputInlineQueryResult::Photo
- Inherits:
-
TD::Types::InputInlineQueryResult
- Object
- Dry::Struct
- Base
- TD::Types::InputInlineQueryResult
- TD::Types::InputInlineQueryResult::Photo
- Defined in:
- lib/tdlib/types/input_inline_query_result/photo.rb
Overview
Represents link to a JPEG image.
Instance Attribute Summary collapse
-
#description ⇒ TD::Types::String
A short description of the result, if known.
-
#id ⇒ TD::Types::String
Unique identifier of the query result.
-
#input_message_content ⇒ TD::Types::InputMessageContent
The content of the message to be sent.
-
#photo_height ⇒ Integer
Height of the photo.
-
#photo_url ⇒ TD::Types::String
The URL of the JPEG photo (photo size must not exceed 5MB).
-
#photo_width ⇒ Integer
Width of the photo.
-
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup.
-
#thumbnail_url ⇒ TD::Types::String
URL of the photo thumbnail, if it exists.
-
#title ⇒ TD::Types::String
Title of the result, if known.
Method Summary
Methods inherited from Base
Instance Attribute Details
#description ⇒ TD::Types::String
A short description of the result, if known.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def description @description end |
#id ⇒ TD::Types::String
Unique identifier of the query result.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 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, inputMessagePhoto, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def @input_message_content end |
#photo_height ⇒ Integer
Height of the photo.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def photo_height @photo_height end |
#photo_url ⇒ TD::Types::String
The URL of the JPEG photo (photo size must not exceed 5MB).
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def photo_url @photo_url end |
#photo_width ⇒ Integer
Width of the photo.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def photo_width @photo_width end |
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def reply_markup @reply_markup end |
#thumbnail_url ⇒ TD::Types::String
URL of the photo thumbnail, if it exists.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def thumbnail_url @thumbnail_url end |
#title ⇒ TD::Types::String
Title of the result, if known.
16 17 18 |
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16 def title @title end |