class InlineQueryResultMpeg4Gif implements InlineQueryResultInterface

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.

Methods

__construct(string $type, string $id, string $mpeg4_url, string $thumb_url, int|null $mpeg4_width = null, int|null $mpeg4_height = null, int|null $mpeg4_duration = null, string|null $thumb_mime_type = null, string|null $title = null, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)

No description

string
getType()

Type of the result, must be mpeg4_gif.

string
getId()

Unique identifier for this result, 1-64 bytes.

string
getMpeg4Url()

A valid URL for the MPEG4 file. File size must not exceed 1MB.

string
getThumbUrl()

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

int|null
getMpeg4Width()

Optional. Video width.

int|null
getMpeg4Height()

Optional. Video height.

int|null
getMpeg4Duration()

Optional. Video duration in seconds.

string|null
getThumbMimeType()

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

string|null
getTitle()

Optional. Title for the result.

string|null
getCaption()

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

string|null
getParseMode()

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

array|null
getCaptionEntities()

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

InlineKeyboardMarkup|null
getReplyMarkup()

Optional. Inline keyboard attached to the message.

InputMessageContentInterface|null
getInputMessageContent()

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

Details

at line 26
__construct(string $type, string $id, string $mpeg4_url, string $thumb_url, int|null $mpeg4_width = null, int|null $mpeg4_height = null, int|null $mpeg4_duration = null, string|null $thumb_mime_type = null, string|null $title = null, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)

No description

Parameters

string $type
string $id
string $mpeg4_url
string $thumb_url
int|null $mpeg4_width
int|null $mpeg4_height
int|null $mpeg4_duration
string|null $thumb_mime_type
string|null $title
string|null $caption
string|null $parse_mode
MessageEntity[]|null $caption_entities
InlineKeyboardMarkup|null $reply_markup
InputMessageContentInterface|null $input_message_content

at line 47
string getType()

Type of the result, must be mpeg4_gif.

Return Value

string

at line 55
string getId()

Unique identifier for this result, 1-64 bytes.

Return Value

string

at line 63
string getMpeg4Url()

A valid URL for the MPEG4 file. File size must not exceed 1MB.

Return Value

string

at line 71
string getThumbUrl()

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

Return Value

string

at line 79
int|null getMpeg4Width()

Optional. Video width.

Return Value

int|null

at line 87
int|null getMpeg4Height()

Optional. Video height.

Return Value

int|null

at line 95
int|null getMpeg4Duration()

Optional. Video duration in seconds.

Return Value

int|null

at line 103
string|null getThumbMimeType()

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

Return Value

string|null

at line 111
string|null getTitle()

Optional. Title for the result.

Return Value

string|null

at line 119
string|null getCaption()

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

Return Value

string|null

at line 127
string|null getParseMode()

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

Return Value

string|null

at line 137
array|null getCaptionEntities()

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

Return Value

array|null

at line 145
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 153
InputMessageContentInterface|null getInputMessageContent()

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

Return Value

InputMessageContentInterface|null