§
    §eîiæ  ã                   ó‚   — d Z ddlmZm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dS )zWThis module contains an object that represents a location to which a chat is connected.é    )ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚLocation)ÚTelegramObject)Úde_json_optional)ÚJSONDict)ÚBotc                   óÊ   ‡ — e Zd ZU dZdZddœdedededz  fˆ fd„Ze	dd	ed
ddd fˆ fd„¦   «         Z
ej        j        Zee         ed<   	 ej        j        Zee         ed<   ˆ xZS )ÚChatLocationa¦  This object represents a location to which a chat is connected.

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

    Args:
        location (:class:`telegram.Location`): The location to which the supergroup is connected.
            Can't be a live location.
        address (:obj:`str`): Location address;
            :tg-const:`telegram.ChatLocation.MIN_ADDRESS`-
            :tg-const:`telegram.ChatLocation.MAX_ADDRESS` characters, as defined by the chat owner.
    Attributes:
        location (:class:`telegram.Location`): The location to which the supergroup is connected.
            Can't be a live location.
        address (:obj:`str`): Location address;
            :tg-const:`telegram.ChatLocation.MIN_ADDRESS`-
            :tg-const:`telegram.ChatLocation.MAX_ADDRESS` characters, as defined by the chat owner.

    )ÚaddressÚlocationN©Ú
api_kwargsr   r   r   c                óª   •— t          ¦   «                              |¬¦  «         || _        || _        | j        f| _        |                      ¦   «          d S )Nr   )ÚsuperÚ__init__r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   Ú	__class__s       €úZ/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_chatlocation.pyr   zChatLocation.__init__8   sK   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/Ø"*ˆŒØ#ˆŒàœ-Ð)ˆŒà�Š‰Œˆˆˆó    ÚdataÚbotz
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ChatLocation.de_jsonG   sR   ø€ ð �Š˜tÑ$Ô$ˆå+¨D¯HªH°ZÑ,@Ô,@Å(ÈCÑPÔPˆˆZÑå‰wŒw�Š D¨cˆÑ2Ô2Ð2r   ÚMIN_ADDRESSÚMAX_ADDRESS)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   Ústrr	   r   Úclassmethodr    r   ÚLocationLimitÚMIN_CHAT_LOCATION_ADDRESSr"   r   ÚintÚ__annotations__ÚMAX_CHAT_LOCATION_ADDRESSr#   Ú__classcell__)r   s   @r   r   r   !   s   ø€ € € € € € ðð ð( (€Ið '+ðð ð àðð ðð
 ˜t‘Oðð ð ð ð ð ð ð3ð 3˜8ð 3¨,ð 3À.ð 3ð 3ð 3ð 3ð 3ñ „[ð3ð (Ô5ÔO€K��s”ÐOÐOÑOðð (Ô5ÔO€K��s”ÐOÐOÑOðð ð ð r   r   N)r'   Útypingr   r   Útelegramr   Útelegram._files.locationr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr	   r
   r   © r   r   ú<module>r8      sÎ   ðð& ^Ð ]à 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'à Ð Ð Ð Ð Ð Ø -Ð -Ð -Ð -Ð -Ð -Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø <Ð <Ð <Ð <Ð <Ð <Ø *Ð *Ð *Ð *Ð *Ð *àð ØÐÐÐÐÐð8ð 8ð 8ð 8ð 8�>ñ 8ô 8ð 8ð 8ð 8r   