class Hamilton::Types::InlineQueryResultMpeg4Gif

Overview

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.

Included Modules

Defined in:

types/inline_query_result.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def caption : String | Nil #

Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.


def caption=(caption : String | Nil) #

Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.


def caption_entities : Array(Hamilton::Types::MessageEntity) | Nil #

List of special entities that appear in the caption, which can be specified instead of #parse_mode.


def caption_entities=(caption_entities : Array(Hamilton::Types::MessageEntity) | Nil) #

List of special entities that appear in the caption, which can be specified instead of #parse_mode.


def id : String #

Unique identifier for this result, 1-64 Bytes.


def id=(id : String) #

Unique identifier for this result, 1-64 Bytes.


def input_message_content : Hamilton::Types::InputMessageContent | Nil #

Content of the message to be sent instead of the video animation.


def input_message_content=(input_message_content : Hamilton::Types::InputMessageContent | Nil) #

Content of the message to be sent instead of the video animation.


def mpeg4_duration : Int32 | Nil #

Video duration in seconds.


def mpeg4_duration=(mpeg4_duration : Int32 | Nil) #

Video duration in seconds.


def mpeg4_height : Int32 | Nil #

Video height.


def mpeg4_height=(mpeg4_height : Int32 | Nil) #

Video height.


def mpeg4_url : String #

A valid URL for the MPEG4 file.


def mpeg4_url=(mpeg4_url : String) #

A valid URL for the MPEG4 file.


def mpeg4_width : Int32 | Nil #

Video width.


def mpeg4_width=(mpeg4_width : Int32 | Nil) #

Video width.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def parse_mode : String | Nil #

Mode for parsing entities in the caption. See formatting options for more details.


def parse_mode=(parse_mode : String | Nil) #

Mode for parsing entities in the caption. See formatting options for more details.


def reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil #

Inline keyboard attached to the message.


def reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil) #

Inline keyboard attached to the message.


def show_caption_above_media : Bool | Nil #

Pass True, if the caption must be shown above the message media.


def show_caption_above_media=(show_caption_above_media : Bool | Nil) #

Pass True, if the caption must be shown above the message media.


def thumbnail_mime_type : String | Nil #

MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”.


def thumbnail_mime_type=(thumbnail_mime_type : String | Nil) #

MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”.


def thumbnail_url : String #

URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.


def thumbnail_url=(thumbnail_url : String) #

URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.


def title : String | Nil #

Title for the result.


def title=(title : String | Nil) #

Title for the result.


def type : String #

Type of the result, must be "mpeg4_gif".


def type=(type : String) #

Type of the result, must be "mpeg4_gif".