Ë
    ÕŸõfª  ã                   óR   — d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	  G d„ de«      Z
y)	zCThis module contains an object that represents a Telegram Location.é    )ÚFinalÚOptional)Ú	constants)ÚTelegramObject)ÚJSONDictc                   ó,  ‡ — e Zd ZU dZdZ	 	 	 	 dddœdededee   dee   d	ee   d
ee   dee   fˆ fd„Z	e
j                  j                  Zee   ed<   	 e
j                  j                  Zee   ed<   	 e
j                  j                   Zee   ed<   ˆ xZS )ÚLocationa1  This object represents a point on the map.

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

    Args:
        longitude (:obj:`float`): Longitude as defined by the sender.
        latitude (:obj:`float`): Latitude as defined by the sender.
        horizontal_accuracy (:obj:`float`, optional): The radius of uncertainty for the location,
            measured in meters; 0-:tg-const:`telegram.Location.HORIZONTAL_ACCURACY`.
        live_period (:obj:`int`, optional): Time relative to the message sending date, during which
            the location can be updated, in seconds. For active live locations only.
        heading (:obj:`int`, optional): The direction in which user is moving, in degrees;
            :tg-const:`telegram.Location.MIN_HEADING`-:tg-const:`telegram.Location.MAX_HEADING`.
            For active live locations only.
        proximity_alert_radius (:obj:`int`, optional): Maximum distance for proximity alerts about
            approaching another chat member, in meters. For sent live locations only.

    Attributes:
        longitude (:obj:`float`): Longitude as defined by the sender.
        latitude (:obj:`float`): Latitude as defined by the sender.
        horizontal_accuracy (:obj:`float`): Optional. The radius of uncertainty for the location,
            measured in meters; 0-:tg-const:`telegram.Location.HORIZONTAL_ACCURACY`.
        live_period (:obj:`int`): Optional. Time relative to the message sending date, during which
            the location can be updated, in seconds. For active live locations only.
        heading (:obj:`int`): Optional. The direction in which user is moving, in degrees;
            :tg-const:`telegram.Location.MIN_HEADING`-:tg-const:`telegram.Location.MAX_HEADING`.
            For active live locations only.
        proximity_alert_radius (:obj:`int`): Optional. Maximum distance for proximity alerts about
            approaching another chat member, in meters. For sent live locations only.

    )ÚheadingÚhorizontal_accuracyÚlatitudeÚlive_periodÚ	longitudeÚproximity_alert_radiusN©Ú
api_kwargsr   r   r   r   r
   r   r   c                óî   •— t         ‰|   |¬«       || _        || _        || _        || _        || _        |rt        |«      nd | _        | j                  | j                  f| _	        | j                  «        y )Nr   )ÚsuperÚ__init__r   r   r   r   r
   Úintr   Ú	_id_attrsÚ_freeze)	Úselfr   r   r   r   r
   r   r   Ú	__class__s	           €úS/var/www/cvtools/html/venv/lib/python3.12/site-packages/telegram/_files/location.pyr   zLocation.__init__G   sq   ø€ ô 	‰Ñ JÐÔ/à )ˆŒØ'ˆŒð 5HˆÔ Ø*5ˆÔØ&-ˆŒá+AŒCÐ&Ô'Àtð 	Ô#ð Ÿ.™.¨$¯-©-Ð8ˆŒà‰ó    ÚHORIZONTAL_ACCURACYÚMIN_HEADINGÚMAX_HEADING)NNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Úfloatr   r   r   r   r   ÚLocationLimitr   r   Ú__annotations__r   r   Ú__classcell__)r   s   @r   r	   r	      sê   ø… ñðB€Ið 04Ø%)Ø!%Ø04ðð *.òàðð ðð & e™_ð	ð
 ˜c‘]ðð ˜#‘ðð !)¨¡ðð ˜XÑ&õð8 '0×&=Ñ&=×&QÑ&QÐ˜˜s™ÓQðð (×5Ñ5×AÑA€Ks‘ÓAðð (×5Ñ5×AÑA€Ks‘ÓAór   r	   N)r"   Útypingr   r   Útelegramr   Útelegram._telegramobjectr   Útelegram._utils.typesr   r	   © r   r   ú<module>r-      s%   ðñ& Jç "å Ý 3Ý *ôUˆ~õ Ur   