§
    ¨eîi+  ã                   óŽ   — 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dS )zOThis module contains an object that represents a chat owner change in the chat.é    )ÚTYPE_CHECKING)ÚTelegramObject)ÚUser)Úde_json_optional)ÚJSONDict)ÚBotc                   óf   ‡ — 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                óœ   •— t          ¦   «                              |¬¦  «         || _        | j        f| _        |                      ¦   «          d S ©Nr   ©ÚsuperÚ__init__r   Ú	_id_attrsÚ_freeze©Úselfr   r   Ú	__class__s      €úW/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_chatowner.pyr   zChatOwnerChanged.__init__2   sD   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/Ø(ˆŒàœ.Ð*ˆŒà�Š‰Œˆˆˆó    ÚdataÚbotú
Bot | NoneÚreturnc                 óÌ   •— |                       |¦  «        }t          |                     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?   óR   ø€ ð �Š˜tÑ$Ô$ˆå,¨T¯XªX°kÑ-BÔ-BÅDÈ#ÑNÔNˆˆ[Ñå‰wŒw�Š D¨cˆÑ2Ô2Ð2r   ©N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   r   Úclassmethodr$   Ú__classcell__©r   s   @r   r
   r
       s¸   ø€ € € € € ðð ð €Ið '+ð	ð ð àðð ˜t‘Oð	ð ð ð ð ð ð ð3ð 3˜8ð 3¨,ð 3ÐBTð 3ð 3ð 3ð 3ð 3ñ „[ð3ð 3ð 3ð 3ð 3r   r
   c                   óp   ‡ — 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                óœ   •— t          ¦   «                              |¬¦  «         || _        | j        f| _        |                      ¦   «          d S r   r   r   s      €r   r   zChatOwnerLeft.__init__]   sD   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/Ø&/ˆŒàœ.Ð*ˆŒà�Š‰Œˆˆˆr   r   r   r   r   c                 óÌ   •— |                       |¦  «        }t          |                     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   sÅ   ø€ € € € € ðð ð" €Ið "&ðð '+ð	ð ð à˜$‘;ðð ˜t‘Oð	ð ð ð ð ð ð ð3ð 3˜8ð 3¨,ð 3À/ð 3ð 3ð 3ð 3ð 3ñ „[ð3ð 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=      sá   ðð& VÐ Uà  Ð  Ð  Ð  Ð  Ð  à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø Ð Ð Ð Ð Ð Ø <Ð <Ð <Ð <Ð <Ð <Ø *Ð *Ð *Ð *Ð *Ð *àð ØÐÐÐÐÐð&3ð &3ð &3ð &3ð &3�~ñ &3ô &3ð &3ðR(3ð (3ð (3ð (3ð (3�Nñ (3ô (3ð (3ð (3ð (3r   