telegram.video module

This module contains an object that represents a Telegram Video.

class telegram.video.Video(file_id, width, height, duration, thumb=None, mime_type=None, file_size=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram Video.

file_id

str

width

int

height

int

duration

int

thumb

telegram.PhotoSize

mime_type

str

file_size

int

Parameters:
  • file_id (str) –
  • width (int) –
  • height (int) –
  • duration (int) –
  • **kwargs – Arbitrary keyword arguments.
Keyword Arguments:
 
  • thumb (Optional[telegram.PhotoSize]) –
  • mime_type (Optional[str]) –
  • file_size (Optional[int]) –
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.Video