InlineQueryResultVideo
class InlineQueryResultVideo implements InlineQueryResultInterface
Represents a link to a page containing an embedded video player or a video file. 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
No description
Type of the result, must be video.
Unique identifier for this result, 1-64 bytes.
A valid URL for the embedded video player or video file.
MIME type of the content of the video URL, “text/html” or “video/mp4”.
URL of the thumbnail (JPEG only) for the video.
Title for the result.
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
Optional. Video width.
Optional. Video height.
Optional. Video duration in seconds.
Optional. Short description of the result.
Optional. Inline keyboard attached to the message.
Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
Details
at line 27
__construct(string $type, string $id, string $video_url, string $mime_type, string $thumb_url, string $title, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null, int|null $video_width = null, int|null $video_height = null, int|null $video_duration = null, string|null $description = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)
No description
at line 49
string
getType()
Type of the result, must be video.
at line 57
string
getId()
Unique identifier for this result, 1-64 bytes.
at line 65
string
getVideoUrl()
A valid URL for the embedded video player or video file.
at line 73
string
getMimeType()
MIME type of the content of the video URL, “text/html” or “video/mp4”.
at line 81
string
getThumbUrl()
URL of the thumbnail (JPEG only) for the video.
at line 89
string
getTitle()
Title for the result.
at line 97
string|null
getCaption()
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
at line 105
string|null
getParseMode()
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
at line 115
array|null
getCaptionEntities()
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
at line 123
int|null
getVideoWidth()
Optional. Video width.
at line 131
int|null
getVideoHeight()
Optional. Video height.
at line 139
int|null
getVideoDuration()
Optional. Video duration in seconds.
at line 147
string|null
getDescription()
Optional. Short description of the result.
at line 155
InlineKeyboardMarkup|null
getReplyMarkup()
Optional. Inline keyboard attached to the message.
at line 163
InputMessageContentInterface|null
getInputMessageContent()
Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).