struct

Telegram::InlineQueryResultMpeg4Gif

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: InlineQueryResultMpeg4Gif Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

Constructors

new(type : String, id : String, mpeg4_url : String, thumbnail_url : String, mpeg4_width : Int64 | Nil = nil, mpeg4_height : Int64 | Nil = nil, mpeg4_duration : Int64 | Nil = nil, thumbnail_mime_type : String | Nil = nil, title : String | Nil = nil, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, show_caption_above_media : Bool | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

caption
caption_entities
clone
Source
copy_with(type _type = @type, id _id = @id, mpeg4_url _mpeg4_url = @mpeg4_url, thumbnail_url _thumbnail_url = @thumbnail_url, mpeg4_width _mpeg4_width = @mpeg4_width, mpeg4_height _mpeg4_height = @mpeg4_height, mpeg4_duration _mpeg4_duration = @mpeg4_duration, thumbnail_mime_type _thumbnail_mime_type = @thumbnail_mime_type, title _title = @title, caption _caption = @caption, parse_mode _parse_mode = @parse_mode, caption_entities _caption_entities = @caption_entities, show_caption_above_media _show_caption_above_media = @show_caption_above_media, reply_markup _reply_markup = @reply_markup, input_message_content _input_message_content = @input_message_content)
Source
id
input_message_content
mpeg4_duration
mpeg4_height
mpeg4_url
mpeg4_width
parse_mode
reply_markup
show_caption_above_media
thumbnail_mime_type
thumbnail_url
title
type