Ë
    †jÁ  ã                   ór   — d Z ddl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 ddlmZmZ  G d	„ d
e«      Zy)zCThis module contains an object that represents a Telegram Location.é    N)ÚFinal)Ú	constants)ÚTelegramObject)Úto_timedelta)Úget_timedelta_value)ÚJSONDictÚ
TimePeriodc                   ób  ‡ — e Zd ZU dZdZ	 	 	 	 dddœdedededz  dedz  d	edz  d
edz  dedz  fˆ fd„Z	e
deej                  z  dz  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 )ÚLocationa 	  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` | :class:`datetime.timedelta`, optional): Time relative to the
            message sending date, during which the location can be updated, in seconds. For active
            live locations only.

            .. versionchanged:: v22.2
                |time-period-input|
        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` | :class:`datetime.timedelta`): Optional. Time relative to the
            message sending date, during which the location can be updated, in seconds. For active
            live locations only.

            .. deprecated:: v22.2
                |time-period-int-deprecated|
        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.

    )Ú_live_periodÚheadingÚhorizontal_accuracyÚlatitudeÚ	longitudeÚproximity_alert_radiusN©Ú
api_kwargsr   r   r   Úlive_periodr   r   r   c                ó   •— t         ‰| �  |¬«       || _        || _        || _        t        |«      | _        || _        |rt        |«      nd | _	        | j                  | j                  f| _
        | j                  «        y )Nr   )ÚsuperÚ__init__r   r   r   r   r   r   Úintr   Ú	_id_attrsÚ_freeze)	Úselfr   r   r   r   r   r   r   Ú	__class__s	           €úW/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_files/location.pyr   zLocation.__init__R   sv   ø€ ô 	‰Ñ JÐÔ/à )ˆŒØ'ˆŒð 2EˆÔ Ü2>¸{Ó2KˆÔØ#*ˆŒá+AŒCÐ&Ô'Àtð 	Ô#ð Ÿ.™.¨$¯-©-Ð8ˆŒà�‰�ó    Úreturnc                 ó0   — t        | j                  d¬«      S )Nr   )Ú	attribute)r   r   )r   s    r   r   zLocation.live_periodn   s   € ä" 4×#4Ñ#4ÀÔNÐNr   ÚHORIZONTAL_ACCURACYÚMIN_HEADINGÚMAX_HEADING)NNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Úfloatr	   r   r   r   ÚpropertyÚdtmÚ	timedeltar   r   ÚLocationLimitr"   r   Ú__annotations__r#   r$   Ú__classcell__)r   s   @r   r   r      s  ø… ñ'ðR€Ið -1Ø)-Ø"Ø-1ðð '+òàðð ðð # T™\ð	ð
   $Ñ&ðð �t‘ðð !$ d¡
ðð ˜t‘Oõð8 ðO˜S 3§=¡=Ñ0°4Ñ7ò Oó ðOð '0×&=Ñ&=×&QÑ&QÐ˜˜s™ÓQðð (×5Ñ5×AÑA€K��s‘ÓAðð (×5Ñ5×AÑA€K��s‘ÓAór   r   )r(   Údatetimer,   Útypingr   Útelegramr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer   Útelegram._utils.typesr   r	   r   © r   r   ú<module>r9      s.   ðñ& Jã Ý å Ý 3Ý 8Ý 8ß 6ôaˆ~õ ar   