telegram.inlinequeryresultcachedvideo module

This module contains the classes that represent Telegram InlineQueryResultCachedVideo

class telegram.inlinequeryresultcachedvideo.InlineQueryResultCachedVideo(id, video_file_id, title, description=None, caption=None, reply_markup=None, input_message_content=None, **kwargs)

Bases: telegram.inlinequeryresult.InlineQueryResult

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.

video_file_id

str – A valid file identifier for the video file.

title

str – Title for the result.

description

Optional[str] – Short description of the result.

caption

Optional[str] – Caption of the video to be sent, 0-200 characters.

reply_markup

Optional[telegram.InlineKeyboardMarkup] – Inline keyboard attached to the message

input_message_content

Optional[telegram.InputMessageContent] – Content of the message to be sent instead of the video

Parameters:
  • id (str) –
  • video_file_id (str) –
  • title (str) –
  • description (Optional[str]) –
  • caption (Optional[str]) –
  • reply_markup (Optional[telegram.InlineKeyboardMarkup]) –
  • input_message_content (Optional[telegram.InputMessageContent]) –
  • **kwargs (dict) – Arbitrary keyword arguments.
static de_json(data, bot)