class
TelegramBot::InlineQueryResultVideo
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/inline/inline_query_result_video.crConstructors
- .new(id : String, video_url : String, mime_type : String, thumbnail_url : String, title : String, *, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, show_caption_above_media : Bool | Nil = nil, video_width : Int32 | Nil = nil, video_height : Int32 | Nil = nil, video_duration : Int32 | Nil = nil, description : String | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #caption : String | Nil
- #caption=(caption : String | Nil)
- #caption_entities : Array(MessageEntity) | Nil
- #caption_entities=(caption_entities : Array(MessageEntity) | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #id : String
- #id=(id : String)
- #input_message_content : InputMessageContent | Nil
- #input_message_content=(input_message_content : InputMessageContent | Nil)
-
#mime_type : String
Mime type of the content of video url, "text/html" or "video/mp4"
-
#mime_type=(mime_type : String)
Mime type of the content of video url, "text/html" or "video/mp4"
- #parse_mode : String | Nil
- #parse_mode=(parse_mode : String | Nil)
- #reply_markup : InlineKeyboardMarkup | Nil
- #reply_markup=(reply_markup : InlineKeyboardMarkup | Nil)
- #show_caption_above_media=(show_caption_above_media : Bool | Nil)
- #show_caption_above_media? : Bool | Nil
-
#thumbnail_url : String
URL of the thumbnail (jpeg only) for the video
-
#thumbnail_url=(thumbnail_url : String)
URL of the thumbnail (jpeg only) for the video
- #title : String
- #title=(title : String)
- #type : String
- #type=(type : String)
- #video_duration : Int32 | Nil
- #video_duration=(video_duration : Int32 | Nil)
- #video_height : Int32 | Nil
- #video_height=(video_height : Int32 | Nil)
- #video_url : String
- #video_url=(video_url : String)
- #video_width : Int32 | Nil
- #video_width=(video_width : Int32 | Nil)
Instance methods inherited from class TelegramBot::InlineQueryResult
to_json(json : JSON::Builder)
to_json
Constructor Detail
def self.new(id : String, video_url : String, mime_type : String, thumbnail_url : String, title : String, *, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, show_caption_above_media : Bool | Nil = nil, video_width : Int32 | Nil = nil, video_height : Int32 | Nil = nil, video_duration : Int32 | Nil = nil, description : String | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil)
#
Instance Method Detail
def mime_type=(mime_type : String)
#
Mime type of the content of video url, "text/html" or "video/mp4"