L i#dZddlZddlmZddlmZmZmZddl m Z ddl m Z ddl mZmZddlmZmZmZdd lmZmZerdd lmZGd d e ZGd de ZGdde ZGdde Zy)z=This module contains objects related to Telegram video chats.N)Sequence) TYPE_CHECKINGOptionalUnion)TelegramObject)User)parse_sequence_arg to_timedelta)extract_tzinfo_from_defaultsfrom_timestampget_timedelta_value)JSONDict TimePeriod)Botc<eZdZdZdZdddeeddffdZxZS)VideoChatStarteda This object represents a service message about a video chat started in the chat. Currently holds no information. .. versionadded:: 13.4 .. versionchanged:: 20.0 This class was renamed from ``VoiceChatStarted`` in accordance to Bot API 6.0. N api_kwargsrreturncFt|||jyNr)super__init___freeze)selfr __class__s Y/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_videochat.pyrzVideoChatStarted.__init__3s J/ ) __name__ __module__ __qualname____doc__ __slots__rrr __classcell__rs@rrr's/I;?hx&8DrrcteZdZdZdZdddedeeddffdZe de e e jffd ZxZS) VideoChatEndeda This object represents a service message about a video chat ended in the chat. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`duration` are equal. .. versionadded:: 13.4 .. versionchanged:: 20.0 This class was renamed from ``VoiceChatEnded`` in accordance to Bot API 6.0. .. versionchanged:: v22.2 As part of the migration to representing time periods using ``datetime.timedelta``, equality comparison now considers integer durations and equivalent timedeltas as equal. Args: duration (:obj:`int` | :class:`datetime.timedelta`): Voice chat duration in seconds. .. versionchanged:: v22.2 |time-period-input| Attributes: duration (:obj:`int` | :class:`datetime.timedelta`): Voice chat duration in seconds. .. deprecated:: v22.2 |time-period-int-deprecated| ) _durationNrdurationrrct||t||_|jf|_|j yr)rrr r) _id_attrsr)rr*rrs rrzVideoChatEnded.__init__[s8 J/(4X(>..* rc0t|jdS)Nr*) attribute)r r))rs rr*zVideoChatEnded.durationgs" NNj  r)r r!r"r#r$rrrrpropertyrintdtm timedeltar*r%r&s@rr(r(9sc>I *.  X&    %S]] 23  rr(creZdZdZdZdddeedeeddffdZ e d d ed ed ddffd Z xZ S)VideoChatParticipantsInviteda This object represents a service message about new members invited to a video chat. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`users` are equal. .. versionadded:: 13.4 .. versionchanged:: 20.0 This class was renamed from ``VoiceChatParticipantsInvited`` in accordance to Bot API 6.0. Args: users (Sequence[:class:`telegram.User`]): New members that were invited to the video chat. .. versionchanged:: 20.0 |sequenceclassargs| Attributes: users (tuple[:class:`telegram.User`]): New members that were invited to the video chat. .. versionchanged:: 20.0 |tupleclassattrs| )usersNrr5rrct||t||_|jf|_|j yr)rrr r5r,r)rr5rrs rrz%VideoChatParticipantsInvited.__init__s7 J/'9%'@ ** rdatabotrc|j|}tj|jdg||d<t|||S),See :meth:`telegram.TelegramObject.de_json`.r5r7r8) _parse_datarde_listgetrde_json)clsr7r8rs rr?z$VideoChatParticipantsInvited.de_jsonsE t$ TXXgr%:C@W wDc22rN) r r!r"r#r$rrrrr classmethodr?r%r&s@rr4r4nsq0I *. ~ X&   4833"*5/3 '33rr4c~eZdZdZdZdddej deeddffdZ e d d ed ed ddffd Z xZ S)VideoChatScheduledaaThis object represents a service message about a video chat scheduled in the chat. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`start_date` are equal. .. versionchanged:: 20.0 This class was renamed from ``VoiceChatScheduled`` in accordance to Bot API 6.0. Args: start_date (:obj:`datetime.datetime`): Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator .. versionchanged:: 20.3 |datetime_localization| Attributes: start_date (:obj:`datetime.datetime`): Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator .. versionchanged:: 20.3 |datetime_localization| ) start_dateNrrErrcxt||||_|jf|_|j yr)rrrEr,r)rrErrs rrzVideoChatScheduled.__init__s3 J/(2//+ rr7r8rc|j|}t|}t|jd||d<t|||S)r:rE)tzinfor;)r<r r r>rr?)r@r7r8 loc_tzinfors rr?zVideoChatScheduled.de_jsonsLt$2#6 +DHH\,B:V\wDc22rrA) r r!r"r#r$r1datetimerrrrBr?r%r&s@rrDrDsl. I *. LL X&    38 3(5/ 3EY 3 3rrD)r#rJr1collections.abcrtypingrrrtelegram._telegramobjectrtelegram._userrtelegram._utils.argumentparsingr r telegram._utils.datetimer r r telegram._utils.typesrrtelegramrrr(r4rDrrrrSsg&D$113L 7~$2 ^2 j/3>/3d1313r