Video

class ftmgram.types.Video(*, client: Client = None, file_id: str, file_unique_id: str, width: int, height: int, codec: str, duration: int, file_name: str | None = None, mime_type: str | None = None, file_size: int | None = None, supports_streaming: bool | None = None, ttl_seconds: int | None = None, date: datetime | None = None, thumbs: List[Thumbnail] | None = None, video_cover: Photo | None = None, video_start_timestamp: int | None = None, alternative_videos: List[Video] | None = [])

A video file.

Parameters:
  • file_id (str) – Identifier for this file, which can be used to download or reuse the file.

  • file_unique_id (str) – Unique identifier for this file, which is supposed to be the same over time and for different accounts. Can’t be used to download or reuse the file.

  • width (int) – Video width as defined by sender.

  • height (int) – Video height as defined by sender.

  • codec (str) – Codec used for video file encoding, for example, “h264”, “h265”, or “av1”.

  • duration (int) – Duration of the video in seconds as defined by sender.

  • file_name (str, optional) – Video file name.

  • mime_type (str, optional) – Mime type of a file as defined by sender.

  • file_size (int, optional) – File size.

  • supports_streaming (bool, optional) – True, if the video was uploaded with streaming support.

  • ttl_seconds (int. optional) – Time-to-live seconds, for secret photos.

  • date (datetime, optional) – Date the video was sent.

  • thumbs (List of Thumbnail, optional) – Video thumbnails.

  • video_cover (Photo, optional) – Video cover.

  • video_start_timestamp (int, optional) – Video startpoint, in seconds.

  • alternative_videos (List of Video, optional) – Alternative qualities of the video in MPEG4 format, encoded with H.264 codec.