L i1vdZddlZddlmZmZddlmZddlm Z ddl m Z ddl m Z ddlmZmZGd d eZy) zDThis module contains an object that represents a Telegram VideoNote.N)OptionalUnion)_BaseThumbedMedium) PhotoSize) to_timedelta)get_timedelta_value)JSONDict TimePeriodceZdZdZdZ ddddedededed eed ee d ee ffd Z e d e eejffdZxZS) VideoNoteaThis object represents a video message (available in Telegram apps as of v.4.0). 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. length (:obj:`int`): Video width and height (diameter of the video message) as defined by 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_size (:obj:`int`, optional): File size in bytes. thumbnail (:class:`telegram.PhotoSize`, optional): Video thumbnail. .. versionadded:: 20.2 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. length (:obj:`int`): Video width and height (diameter of the video message) as defined by 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_size (:obj:`int`): Optional. File size in bytes. thumbnail (:class:`telegram.PhotoSize`): Optional. Video thumbnail. .. versionadded:: 20.2 ) _durationlengthN) api_kwargsfile_idfile_unique_idrduration file_size thumbnailrct|||||||j5||_t ||_dddy#1swYyxYw)N)rrrrr)super__init__ _unfrozenrrr ) selfrrrrrrr __class__s _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_files/videonote.pyrzVideoNote.__init__Ps^ )!  ^^  C%DK,8,BDN C C Cs AAreturnc0t|jdS)Nr) attribute)rr )rs rrzVideoNote.durationgs" NNj  )NN)__name__ __module__ __qualname____doc__ __slots__strintr rrr rpropertyrdtm timedeltar __classcell__)rs@rr r s,\(I$()-C*.CCC C  C C= CI&CX&C. %S]] 23  rr )r#datetimer(typingrr"telegram._files._basethumbedmediumrtelegram._files.photosizertelegram._utils.argumentparsingrtelegram._utils.datetimertelegram._utils.typesr r r rrr3s/&K"A/886L "L r