+
    ÁFñj¡!  ã                   ó´   € R t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHt ^ R
IHt ]'       d   ^ RIHt  ! R R]4      tR# )zLThis module contains an object that represents a Telegram ChatMemberUpdated.N)ÚTYPE_CHECKING)ÚChat)ÚChatInviteLink)Ú
ChatMember)ÚTelegramObject)ÚUser)Úde_json_optional)Úextract_tzinfo_from_defaultsÚfrom_timestamp©ÚJSONDict)ÚBotc                   óœ   a a€ ] tR t^%t oRtRtRRR/V3R lV 3R llllt]RV3R lV 3R lll4       tV3R lR	 lt	V3R
 lR lt
RtVtV ;t# )ÚChatMemberUpdatedaª
  This object represents changes in the status of a chat member.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`chat`, :attr:`from_user`, :attr:`date`,
:attr:`old_chat_member` and :attr:`new_chat_member` are equal.

.. versionadded:: 13.4

Note:
    In Python :keyword:`from` is a reserved word. Use :paramref:`from_user` instead.

Examples:
    :any:`Chat Member Bot <examples.chatmemberbot>`

Args:
    chat (:class:`telegram.Chat`): Chat the user belongs to.
    from_user (:class:`telegram.User`): Performer of the action, which resulted in the change.
    date (:class:`datetime.datetime`): Date the change was done in Unix time. Converted to
        :class:`datetime.datetime`.

        .. versionchanged:: 20.3
            |datetime_localization|
    old_chat_member (:class:`telegram.ChatMember`): Previous information about the chat member.
    new_chat_member (:class:`telegram.ChatMember`): New information about the chat member.
    invite_link (:class:`telegram.ChatInviteLink`, optional): Chat invite link, which was used
        by the user to join the chat. For joining by invite link events only.
    via_chat_folder_invite_link (:obj:`bool`, optional): :obj:`True`, if the user joined the
        chat via a chat folder invite link

        .. versionadded:: 20.3
    via_join_request (:obj:`bool`, optional): :obj:`True`, if the user joined the chat after
        sending a direct join request without using an invite link and being approved by
        an administrator

        .. versionadded:: 21.2

Attributes:
    chat (:class:`telegram.Chat`): Chat the user belongs to.
    from_user (:class:`telegram.User`): Performer of the action, which resulted in the change.
    date (:class:`datetime.datetime`): Date the change was done in Unix time. Converted to
        :class:`datetime.datetime`.

        .. versionchanged:: 20.3
            |datetime_localization|
    old_chat_member (:class:`telegram.ChatMember`): Previous information about the chat member.
    new_chat_member (:class:`telegram.ChatMember`): New information about the chat member.
    invite_link (:class:`telegram.ChatInviteLink`): Optional. Chat invite link, which was used
        by the user to join the chat. For joining by invite link events only.
    via_chat_folder_invite_link (:obj:`bool`): Optional. :obj:`True`, if the user joined the
        chat via a chat folder invite link

        .. versionadded:: 20.3
    via_join_request (:obj:`bool`): Optional. :obj:`True`, if the user joined the chat after
        sending a direct join request without using an invite link and being approved
        by an administrator

        .. versionadded:: 21.2

NÚ
api_kwargsc                óœ   <€ V ^8„  d   QhRS[ RS[RS[P                  RS[RS[RS[R,          RS[R,          R	S[R,          R
S[R,          /	# )é   ÚchatÚ	from_userÚdateÚold_chat_memberÚnew_chat_memberÚinvite_linkNÚvia_chat_folder_invite_linkÚvia_join_requestr   )r   r   ÚdtmÚdatetimer   r   Úboolr   )ÚformatÚ__classdict__s   "€ÚQ/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_chatmemberupdated.pyÚ__annotate__ÚChatMemberUpdated.__annotate__m   sz   ø€ ÷ "ñ "áð"ñ ð"ñ �l‰lð	"ñ
 $ð"ñ $ð"ñ $ dÕ*ð"ñ &*¨D¥[ð"ñ  �+ð"ñ ˜t•Oñ"ó    c	               ó$  <€ \         S
V `  V	R 7       Wn        W n        W0n        W@n        WPn        Wpn        W`n        W€n	        V P                  V P                  V P                  V P
                  V P                  3V n
        V P                  4        R# ))r   N)ÚsuperÚ__init__r   r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   r   r   r   r   r   Ú	__class__s   &&&&&&&&&$€r    r&   ÚChatMemberUpdated.__init__m   s�   ø€ ô 	‰Ñ JÐÔ/àŒ	Ø(ŒØ"&Œ	Ø+:ÔØ+:ÔØ8SÔ(ð 3>ÔØ-=Ôð �I‰IØ�N‰NØ�I‰IØ× Ñ Ø× Ñ ð
ˆŒð 	�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotz
Bot | NoneÚreturnr   r   )r   r   s   "€r    r!   r"   ’   s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBUñ 3r#   c                óú  <€ V P                  V4      p\        V4      p\        VP                  R4      \        V4      VR&   \        VP                  RR4      \        V4      VR&   \        VP                  R4      VR7      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R	4      \        V4      VR	&   \        SV `-  WR
7      # )z,See :meth:`telegram.TelegramObject.de_json`.r   ÚfromNr   r   )Útzinfor   r   r   )r-   r.   )Ú_parse_datar	   r   Úgetr   Úpopr   r
   r   r   r%   Úde_json)Úclsr-   r.   Ú
loc_tzinfor*   s   &&& €r    r6   ÚChatMemberUpdated.de_json‘   sß   ø€ ð �‰˜tÓ$ˆô 2°#Ó6ˆ
ä'¨¯©°Ó(8¼$ÀÓDˆˆV‰Ü,¨T¯X©X°f¸dÓ-CÄTÈ3ÓOˆˆ[ÑÜ% d§h¡h¨vÓ&6¸zÔJˆˆV‰Ü"2°4·8±8Ð<MÓ3NÔPZÐ\_Ó"`ˆÐÑÜ"2°4·8±8Ð<MÓ3NÔPZÐ\_Ó"`ˆÐÑÜ.¨t¯x©x¸Ó/FÌÐX[Ó\ˆˆ]Ñä‰w‰ DˆÓ2Ð2r#   c                ó<   <€ V ^8„  d   QhRS[ RS[S[S[3,          /# )r   Ú	attributer/   )ÚstrÚtupleÚobject)r   r   s   "€r    r!   r"   ¢   s$   ø€ ÷ ñ ±3ð ¹5ÁÉÀÕ;Pñ r#   c                ó¨   €  V P                   V,          p V P                  V,          pW#3#   \         d    R p L&i ; i  \         d    R p Y#3# i ; i©N)r   ÚKeyErrorr   )r)   r;   ÚoldÚnews   &&  r    Ú_get_attribute_differenceÚ+ChatMemberUpdated._get_attribute_difference¢   sg   € ð	Ø×&Ñ& yÕ1ˆCð	Ø×&Ñ& yÕ1ˆCð ˆxˆøô ô 	ØŠCð	ûô
 ô 	Ø‰Càˆxˆð	ús   ‚, –? ¬<»<¿AÁAc                óÔ   <€ V ^8„  d   QhRS[ S[S[S[S[,          S[P
                  ,          S[,          S[S[,          S[P
                  ,          S[,          3,          3,          /# )r   r/   )Údictr<   r=   r   r   r   r   )r   r   s   "€r    r!   r"   ¯   sT   ø€ ÷ 'ñ 'á	ÙÙ‰c‘D�j™3Ÿ<™<Õ'©$Õ.±±dµ
¹S¿\¹\Õ0IÉDÕ0PÐPÕQð	Sõ
ñ'r#   c                óâ  € V P                   P                  4       pVP                  R4      pV P                  P                  4       pVP                  R4      pR \	        VP                  4       4      \	        VP                  4       4      ,           4       pV Uu/ uF  qfV P                  V4      bK  	  ppW$8w  d0   V P                   P                  V P                  P                  3VR&   V# u upi )a  Computes the difference between :attr:`old_chat_member` and :attr:`new_chat_member`.

Example:
    .. code:: pycon

        >>> chat_member_updated.difference()
        {'custom_title': ('old title', 'new title')}

Note:
    To determine, if the :attr:`telegram.ChatMember.user` attribute has changed, *every*
    attribute of the user will be checked.

.. versionadded:: 13.5

Returns:
    dict[:obj:`str`, tuple[:class:`object`, :class:`object`]]: A dictionary mapping
    attribute names to tuples of the form ``(old_value, new_value)``
Úuserc              3   ó2   "  € T F  q^ ,          x € K  	  R# 5i)é    N© )Ú.0Úentrys   & r    Ú	<genexpr>Ú/ChatMemberUpdated.difference.<locals>.<genexpr>Ð   s   é € ÐZÑ,Y 5˜A—h’hÓ,Yùs   ‚)r   Úto_dictr5   r   ÚsetÚitemsrD   rI   )r)   Úold_dictÚold_user_dictÚnew_dictÚnew_user_dictÚ
attributesr;   Úresults   &       r    Ú
differenceÚChatMemberUpdated.difference¯   sÍ   € ð4 ×'Ñ'×/Ñ/Ó1ˆØ Ÿ™ VÓ,ˆØ×'Ñ'×/Ñ/Ó1ˆØ Ÿ™ VÓ,ˆñ [¬C°·±Ó0@Ó,AÄCÈÏÉÓHXÓDYÖ,YÓZˆ
áXbÓcÑXbÈ9˜T×;Ñ;¸IÓFÒFÑXbˆÐcØÔ)Ø"×2Ñ2×7Ñ7¸×9MÑ9M×9RÑ9RÐSˆF�6‰Nàˆùò	 ds   ÂC,)	r'   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )NNNr@   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r&   Úclassmethodr6   rD   rZ   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r*   r   s   @@r    r   r   %   sY   ù‡ € ñ:ðx	€Iñ"ð '+÷"ö "ðH ÷3ô 3ó ð3÷ ð ÷'÷ 'ð 'r#   r   )r`   r   r   Útypingr   Útelegram._chatr   Útelegram._chatinvitelinkr   Útelegram._chatmemberr   Útelegram._telegramobjectr   Útelegram._userr   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer	   r
   Útelegram._utils.typesr   Útelegramr   r   rL   r#   r    Ú<module>rp      s=   ðñ& Sã Ý  å Ý 3Ý +Ý 3Ý Ý <ß QÝ *çÝôq˜ö qr#   