telegram.VideoNote

class telegram.VideoNote(file_id, length, duration, thumb=None, file_size=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a video message (available in Telegram apps as of v.4.0).

file_id

str – Unique identifier for this file.

length

int – Video width and height as defined by sender.

duration

int – Duration of the video in seconds as defined by sender.

thumb

telegram.PhotoSize – Optional. Video thumbnail.

file_size

int – Optional. File size.

Parameters:
  • file_id (str) – Unique identifier for this file.
  • length (int) – Video width and height as defined by sender.
  • duration (int) – Duration of the video in seconds as defined by sender.
  • thumb (telegram.PhotoSize, optional) – Video thumbnail.
  • file_size (int, optional) – File size.
  • **kwargs (dict) – Arbitrary keyword arguments.