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='', file_size=0, **kwargs)¶ Bases:
telegram.base.TelegramObjectThis object represents a Telegram Video.
-
file_id¶ str
-
width¶ int
-
height¶ int
-
duration¶ int
-
thumb¶
-
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: - data (dict) –
- bot (telegram.Bot) –
Returns: Return type:
-