Class: TD::Types::InputInlineQueryResult::Animation
- Inherits:
-
TD::Types::InputInlineQueryResult
- Object
- Dry::Struct
- Base
- TD::Types::InputInlineQueryResult
- TD::Types::InputInlineQueryResult::Animation
- Defined in:
- lib/tdlib/types/input_inline_query_result/animation.rb
Overview
Represents a link to an animated GIF or an animated (i.e. without sound) H.264/MPEG-4 AVC video.
Instance Attribute Summary collapse
-
#id ⇒ TD::Types::String
Unique identifier of the query result.
-
#input_message_content ⇒ TD::Types::InputMessageContent
The content of the message to be sent.
-
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup.
-
#thumbnail_mime_type ⇒ TD::Types::String
MIME type of the video thumbnail.
-
#thumbnail_url ⇒ TD::Types::String
URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists.
-
#title ⇒ TD::Types::String
Title of the query result.
-
#video_duration ⇒ Integer
Duration of the video, in seconds.
-
#video_height ⇒ Integer
Height of the video.
-
#video_mime_type ⇒ TD::Types::String
MIME type of the video file.
-
#video_url ⇒ TD::Types::String
The URL of the video file (file size must not exceed 1MB).
-
#video_width ⇒ Integer
Width of the video.
Method Summary
Methods inherited from Base
Instance Attribute Details
#id ⇒ TD::Types::String
Unique identifier of the query result.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 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, inputMessageAnimation, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def @input_message_content end |
#reply_markup ⇒ TD::Types::ReplyMarkup
The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def reply_markup @reply_markup end |
#thumbnail_mime_type ⇒ TD::Types::String
MIME type of the video thumbnail. If non-empty, must be one of “image/jpeg”, “image/gif” and “video/mp4”.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def thumbnail_mime_type @thumbnail_mime_type end |
#thumbnail_url ⇒ TD::Types::String
URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def thumbnail_url @thumbnail_url end |
#title ⇒ TD::Types::String
Title of the query result.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def title @title end |
#video_duration ⇒ Integer
Duration of the video, in seconds.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def video_duration @video_duration end |
#video_height ⇒ Integer
Height of the video.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def video_height @video_height end |
#video_mime_type ⇒ TD::Types::String
MIME type of the video file. Must be one of “image/gif” and “video/mp4”.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def video_mime_type @video_mime_type end |
#video_url ⇒ TD::Types::String
The URL of the video file (file size must not exceed 1MB).
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def video_url @video_url end |
#video_width ⇒ Integer
Width of the video.
21 22 23 |
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21 def video_width @video_width end |