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.

Parameters:
  • video_url (str) – A valid URL for the embedded video player or video file.

  • thumb_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 (ParseMode, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.

  • caption_entities (List of MessageEntity) – List of special entities that appear in the caption, which can be specified instead of parse_mode.

  • reply_markup (InlineKeyboardMarkup, optional) – Inline keyboard attached to the message

  • input_message_content (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).