Class: Telegrammer::DataTypes::InlineQueryResultVideo
- Defined in:
- lib/telegrammer/data_types/inline_query_result_video.rb
Overview
Telegram InlineQueryResultVideo data type
See more at core.telegram.org/bots/api#inlinequeryresultvideo
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#disable_web_page_preview ⇒ Boolean
Optional.
-
#id ⇒ String
Unique identifier for this result, 1-64 bytes.
-
#message_text ⇒ String
Text of the message to be sent with the video, 1-512 characters.
-
#mime_type ⇒ String
Mime type of the content of video url, “text/html” or “video/mp4”.
-
#parse_mode ⇒ String
Optional.
-
#thumb_url ⇒ String
URL of the thumbnail (jpeg only) for the video.
-
#title ⇒ String
Title for the result.
-
#type ⇒ String
Type of the result, must be video.
-
#video_duration ⇒ Integer
Optional.
-
#video_height ⇒ Integer
Optional.
-
#video_url ⇒ String
A valid URL for the embedded video player or video file.
-
#video_width ⇒ Integer
Optional.
Instance Attribute Details
#description ⇒ String
Optional. Short description of the result
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def description @description end |
#disable_web_page_preview ⇒ Boolean
Optional. Disables link previews for links in the sent message
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def disable_web_page_preview @disable_web_page_preview end |
#id ⇒ String
Unique identifier for this result, 1-64 bytes
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def id @id end |
#message_text ⇒ String
Text of the message to be sent with the video, 1-512 characters
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def @message_text end |
#mime_type ⇒ String
Mime type of the content of video url, “text/html” or “video/mp4”
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def mime_type @mime_type end |
#parse_mode ⇒ String
Optional. Send “Markdown”, if you want Telegram apps to show bold, italic and inline URLs in your bot’s message.
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def parse_mode @parse_mode end |
#thumb_url ⇒ String
URL of the thumbnail (jpeg only) for the video
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def thumb_url @thumb_url end |
#title ⇒ String
Title for the result
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def title @title end |
#type ⇒ String
Type of the result, must be video
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def type @type end |
#video_duration ⇒ Integer
Optional. Video duration in seconds
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def video_duration @video_duration end |
#video_height ⇒ Integer
Optional. Video height
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def video_height @video_height end |
#video_url ⇒ String
A valid URL for the embedded video player or video file
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def video_url @video_url end |
#video_width ⇒ Integer
Optional. Video width
20 21 22 |
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20 def video_width @video_width end |