Ë
    †j+  ã                   ó€   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 erddlmZ  G d„ d	e«      Z G d
„ de«      Zy)zOThis module contains an object that represents a chat owner change in the chat.é    )ÚTYPE_CHECKING)ÚTelegramObject)ÚUser)Úde_json_optional)ÚJSONDict)ÚBotc                   ó`   ‡ — e Zd ZdZdZddœdededz  fˆ fd„Zedded	d
dd fˆ fd„«       Z	ˆ xZ
S )ÚChatOwnerChangeda²  This object represents a service message about an ownership change in the chat.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`new_owner` is equal.

    .. versionadded:: 22.7

    Args:
        new_owner (:class:`telegram.User`): The new owner of the chat

    Attributes:
        new_owner (:class:`telegram.User`): The new owner of the chat

    ©Ú	new_ownerN©Ú
api_kwargsr   r   c                óx   •— t         ‰| �  |¬«       || _        | j                  f| _        | j	                  «        y ©Nr   ©ÚsuperÚ__init__r   Ú	_id_attrsÚ_freeze©Úselfr   r   Ú	__class__s      €úR/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_chatowner.pyr   zChatOwnerChanged.__init__2   s3   ø€ ô 	‰Ñ JÐÔ/Ø(ˆŒàŸ.™.Ð*ˆŒà�‰�ó    ÚdataÚbotú
Bot | NoneÚreturnc                 óŽ   •— | j                  |«      }t        |j                  d«      t        |«      |d<   t        ‰| �  ||¬«      S ©z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r   ©Ú_parse_datar   Úgetr   r   Úde_json©Úclsr   r   r   s      €r   r$   zChatOwnerChanged.de_json?   óB   ø€ ð �‰˜tÓ$ˆä,¨T¯X©X°kÓ-BÄDÈ#ÓNˆˆ[Ñä‰w‰ D¨cˆÓ2Ð2r   ©N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   r   Úclassmethodr$   Ú__classcell__©r   s   @r   r
   r
       sY   ø„ ñð €Ið '+ò	àðð ˜t‘Oõ	ð ñ3˜8ð 3¨,ð 3ÐBTô 3ó ô3r   r
   c                   ój   ‡ — e Zd ZdZdZ	 dddœdedz  dedz  fˆ fd„Zedded	d
dd fˆ fd„«       Z	ˆ xZ
S )ÚChatOwnerLeftap  This object represents a service message about the chat owner leaving the chat.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`new_owner` is equal.

    .. versionadded:: 22.7

    Args:
        new_owner (:class:`telegram.User`, optional): The user which will be the new owner of the
            chat if the previous owner does not return to the chat

    Attributes:
        new_owner (:class:`telegram.User`): Optional. The user which will be the new owner of the
            chat if the previous owner does not return to the chat

    r   Nr   r   r   c                óx   •— t         ‰| �  |¬«       || _        | j                  f| _        | j	                  «        y r   r   r   s      €r   r   zChatOwnerLeft.__init__]   s3   ø€ ô 	‰Ñ JÐÔ/Ø&/ˆŒàŸ.™.Ð*ˆŒà�‰�r   r   r   r   r   c                 óŽ   •— | j                  |«      }t        |j                  d«      t        |«      |d<   t        ‰| �  ||¬«      S r    r!   r%   s      €r   r$   zChatOwnerLeft.de_jsonj   r'   r   r(   r)   r1   s   @r   r3   r3   I   sf   ø„ ñð" €Ið "&ðð '+ò	à˜$‘;ðð ˜t‘Oõ	ð ñ3˜8ð 3¨,ð 3À/ô 3ó ô3r   r3   N)r-   Útypingr   Útelegram._telegramobjectr   Útelegram._userr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr   Útelegramr   r
   r3   © r   r   ú<module>r=      s9   ðñ& Vå  å 3Ý Ý <Ý *áÝô&3�~ô &3ôR(3�Nõ (3r   