This object represents a video file. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`file_unique_id` is equal. .. versionchanged:: 20.5 |removed_thumb_note| Args: file_id (:obj:`str`): Identif
| 34 | |
| 35 | |
| 36 | class Video(_BaseThumbedMedium): |
| 37 | """This object represents a video file. |
| 38 | |
| 39 | Objects of this class are comparable in terms of equality. Two objects of this class are |
| 40 | considered equal, if their :attr:`file_unique_id` is equal. |
| 41 | |
| 42 | .. versionchanged:: 20.5 |
| 43 | |removed_thumb_note| |
| 44 | |
| 45 | Args: |
| 46 | file_id (:obj:`str`): Identifier for this file, which can be used to download |
| 47 | or reuse the file. |
| 48 | file_unique_id (:obj:`str`): Unique identifier for this file, which |
| 49 | is supposed to be the same over time and for different bots. |
| 50 | Can't be used to download or reuse the file. |
| 51 | width (:obj:`int`): Video width as defined by the sender. |
| 52 | height (:obj:`int`): Video height as defined by the sender. |
| 53 | duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video |
| 54 | in seconds as defined by the sender. |
| 55 | |
| 56 | .. versionchanged:: v22.2 |
| 57 | |time-period-input| |
| 58 | file_name (:obj:`str`, optional): Original filename as defined by the sender. |
| 59 | mime_type (:obj:`str`, optional): MIME type of a file as defined by the sender. |
| 60 | file_size (:obj:`int`, optional): File size in bytes. |
| 61 | thumbnail (:class:`telegram.PhotoSize`, optional): Video thumbnail. |
| 62 | |
| 63 | .. versionadded:: 20.2 |
| 64 | cover (Sequence[:class:`telegram.PhotoSize`], optional): Available sizes of the cover of |
| 65 | the video in the message. |
| 66 | |
| 67 | .. versionadded:: 21.11 |
| 68 | start_timestamp (:obj:`int` | :class:`datetime.timedelta`, optional): Timestamp in seconds |
| 69 | from which the video will play in the message |
| 70 | .. versionadded:: 21.11 |
| 71 | |
| 72 | .. versionchanged:: v22.2 |
| 73 | |time-period-input| |
| 74 | qualities (Sequence[:class:`telegram.VideoQuality`], optional): List of available qualities |
| 75 | of the video |
| 76 | |
| 77 | .. versionadded:: 22.7 |
| 78 | |
| 79 | Attributes: |
| 80 | file_id (:obj:`str`): Identifier for this file, which can be used to download |
| 81 | or reuse the file. |
| 82 | file_unique_id (:obj:`str`): Unique identifier for this file, which |
| 83 | is supposed to be the same over time and for different bots. |
| 84 | Can't be used to download or reuse the file. |
| 85 | width (:obj:`int`): Video width as defined by the sender. |
| 86 | height (:obj:`int`): Video height as defined by the sender. |
| 87 | duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in seconds |
| 88 | as defined by the sender. |
| 89 | |
| 90 | .. deprecated:: v22.2 |
| 91 | |time-period-int-deprecated| |
| 92 | file_name (:obj:`str`): Optional. Original filename as defined by the sender. |
| 93 | mime_type (:obj:`str`): Optional. MIME type of a file as defined by the sender. |
no outgoing calls
searching dependent graphs…