L idZddlZddlmZddlmZmZmZddl m Z ddl m Z ddl mZmZmZddlmZdd lmZmZerdd lmZGd d e Zy) z@This module contains an object that represents a Telegram Video.N)Sequence) TYPE_CHECKINGOptionalUnion)_BaseThumbedMedium) PhotoSize)de_list_optionalparse_sequence_arg to_timedelta)get_timedelta_value)JSONDict TimePeriod)Botc4eZdZdZdZ ddddedededed ed eed eed eed ee dee e deedee ffdZ e deeej ffdZe deeeej ffdZedde dedddffd ZxZS)Videoa{ 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`): Identifier for this file, which can be used to download or reuse the file. file_unique_id (:obj:`str`): Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. width (:obj:`int`): Video width as defined by the sender. height (:obj:`int`): Video height as defined by the sender. duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in seconds as defined by the sender. .. versionchanged:: v22.2 |time-period-input| file_name (:obj:`str`, optional): Original filename as defined by the sender. mime_type (:obj:`str`, optional): MIME type of a file as defined by the sender. file_size (:obj:`int`, optional): File size in bytes. thumbnail (:class:`telegram.PhotoSize`, optional): Video thumbnail. .. versionadded:: 20.2 cover (Sequence[:class:`telegram.PhotoSize`], optional): Available sizes of the cover of the video in the message. .. versionadded:: 21.11 start_timestamp (:obj:`int` | :class:`datetime.timedelta`, optional): Timestamp in seconds from which the video will play in the message .. versionadded:: 21.11 .. versionchanged:: v22.2 |time-period-input| Attributes: file_id (:obj:`str`): Identifier for this file, which can be used to download or reuse the file. file_unique_id (:obj:`str`): Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. width (:obj:`int`): Video width as defined by the sender. height (:obj:`int`): Video height as defined by the sender. duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in seconds as defined by the sender. .. deprecated:: v22.2 |time-period-int-deprecated| file_name (:obj:`str`): Optional. Original filename as defined by the sender. mime_type (:obj:`str`): Optional. MIME type of a file as defined by the sender. file_size (:obj:`int`): Optional. File size in bytes. thumbnail (:class:`telegram.PhotoSize`): Optional. Video thumbnail. .. versionadded:: 20.2 cover (tuple[:class:`telegram.PhotoSize`]): Optional, Available sizes of the cover of the video in the message. .. versionadded:: 21.11 start_timestamp (:obj:`int` | :class:`datetime.timedelta`): Optional. Timestamp in seconds from which the video will play in the message .. versionadded:: 21.11 .. deprecated:: v22.2 |time-period-int-deprecated| ) _duration_start_timestampcover file_nameheight mime_typewidthN) api_kwargsfile_idfile_unique_idrrdurationr file_sizer thumbnailrstart_timestamprc t ||||| | |j5||_||_t ||_||_||_t| |_ t | |_ dddy#1swYyxYw)N)rrrrr) super__init__ _unfrozenrrr rrrr rr)selfrrrrrrrrrrrr __class__s [/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_files/video.pyr"zVideo.__init__ss )!  ^^  [#DJ%DK,8,BDN,5DN,5DN8J58QDJ=I/=ZD ! [ [ [s A A<<Breturnc0t|jdS)Nr attribute)r rr$s r&rzVideo.durations" NNj  c0t|jdS)Nrr))r rr+s r&rzVideo.start_timestamps"4#8#8DUVVr,databotrc|j|}t|jdt||d<t|||S)z,See :meth:`telegram.TelegramObject.de_json`.r)r.r/) _parse_datar getrr!de_json)clsr.r/r%s r&r3z Video.de_jsonsAt$('):IsKW wDc22r,)NNNNNN)N)__name__ __module__ __qualname____doc__ __slots__strintrrrrr r"propertyrdtm timedeltarr classmethodr3 __classcell__)r%s@r&rr#seCJI"$(#'#')-/304 [*. [ [ [ [  [  [C= [C= [C= [I& [+, ["*- [X& [D %S]] 23  W%S]]0B*C!DWW383(5/3W33r,r)r8datetimer=collections.abcrtypingrrr"telegram._files._basethumbedmediumrtelegram._files.photosizertelegram._utils.argumentparsingr r r telegram._utils.datetimer telegram._utils.typesr rtelegramrrr,r&rKs>&G$11A/^^86C3 C3r,