InlineQueryResultVideo¶
- class pyrogram.types.InlineQueryResultVideo¶
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.
Note
If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.
- Parameters:¶
video_url (``str``) – A valid URL for the embedded video player or video file.
thumbnail_url (``str``) – URL of the thumbnail (JPEG only) for the video.
title (``str``) – Title for the result.
id (``str``, *optional*) – Unique identifier for this result, 1-64 bytes. Defaults to a randomly generated UUID4.
mime_type (``str``) – Mime type of the content of video url, “text/html” or “video/mp4”. Defaults to “video/mp4”.
video_width (``int``) – Video width.
video_height (``int``) – Video height.
video_duration (``int``) – Video duration in seconds.
description (``str``, *optional*) – Short description of the result.
caption (``str``, *optional*) – Caption of the video to be sent, 0-1024 characters.
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`) – List of special entities that appear in the caption, which can be specified instead of parse_mode.
show_caption_above_media (``bool``, *optional*) – Pass True, if the caption must be shown above the message media.
reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*) – Inline keyboard attached to the message
input_message_content (:obj:`~pyrogram.types.InputMessageContent`) – 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).