class InlineQueryResultCachedVideo implements InlineQueryResultInterface

Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

Methods

__construct(string $type, string $id, string $video_file_id, string $title, string|null $description = 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 video.

string
getId()

Unique identifier for this result, 1-64 bytes.

string
getVideoFileId()

A valid file identifier for the video file.

string
getTitle()

Title for the result.

string|null
getDescription()

Optional. Short description of the result.

string|null
getCaption()

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

string|null
getParseMode()

Optional. Mode for parsing entities in the video 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.

Details

at line 22
__construct(string $type, string $id, string $video_file_id, string $title, string|null $description = 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 $video_file_id
string $title
string|null $description
string|null $caption
string|null $parse_mode
MessageEntity[]|null $caption_entities
InlineKeyboardMarkup|null $reply_markup
InputMessageContentInterface|null $input_message_content

at line 39
string getType()

Type of the result, must be video.

Return Value

string

at line 47
string getId()

Unique identifier for this result, 1-64 bytes.

Return Value

string

at line 55
string getVideoFileId()

A valid file identifier for the video file.

Return Value

string

at line 63
string getTitle()

Title for the result.

Return Value

string

at line 71
string|null getDescription()

Optional. Short description of the result.

Return Value

string|null

at line 79
string|null getCaption()

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

Return Value

string|null

at line 87
string|null getParseMode()

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

Return Value

string|null

at line 97
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 105
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 113
InputMessageContentInterface|null getInputMessageContent()

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

Return Value

InputMessageContentInterface|null