Ë
    5†¼iN  ã                   ó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)zUThis module contains the classes that represent Telegram InputLocationMessageContent.é    N)ÚFinal)Ú	constants)ÚInputMessageContent)Úto_timedelta)Úget_timedelta_value)ÚJSONDictÚ
TimePeriodc                   óZ  ‡ — 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<   	 ej                  j*                  Zee   ed<   	 ej                  j,                  Zee   ed<   	 ej                  j.                  Zee   ed<   	 ej                  j0                  Zee   ed<   ˆ xZS )ÚInputLocationMessageContenta$  
    Represents the content of a location message to be sent as the result of an inline query.

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

    Args:
        latitude (:obj:`float`): Latitude of the location in degrees.
        longitude (:obj:`float`): Longitude of the location in degrees.
        horizontal_accuracy (:obj:`float`, optional): The radius of uncertainty for the location,
            measured in meters; 0-
            :tg-const:`telegram.InputLocationMessageContent.HORIZONTAL_ACCURACY`.
        live_period (:obj:`int` | :class:`datetime.timedelta`, optional): Period in seconds for
            which the location will be updated, should be between
            :tg-const:`telegram.InputLocationMessageContent.MIN_LIVE_PERIOD` and
            :tg-const:`telegram.InputLocationMessageContent.MAX_LIVE_PERIOD` or
            :tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` for live
            locations that can be edited indefinitely.

            .. versionchanged:: v22.2
                |time-period-input|
        heading (:obj:`int`, optional): For live locations, a direction in which the user is
            moving, in degrees. Must be between
            :tg-const:`telegram.InputLocationMessageContent.MIN_HEADING` and
            :tg-const:`telegram.InputLocationMessageContent.MAX_HEADING` if specified.
        proximity_alert_radius (:obj:`int`, optional): For live locations, a maximum distance
            for proximity alerts about approaching another chat member, in meters. Must be
            between :tg-const:`telegram.InputLocationMessageContent.MIN_PROXIMITY_ALERT_RADIUS`
            and :tg-const:`telegram.InputLocationMessageContent.MAX_PROXIMITY_ALERT_RADIUS`
            if specified.

    Attributes:
        latitude (:obj:`float`): Latitude of the location in degrees.
        longitude (:obj:`float`): Longitude of the location in degrees.
        horizontal_accuracy (:obj:`float`): Optional. The radius of uncertainty for the location,
            measured in meters; 0-
            :tg-const:`telegram.InputLocationMessageContent.HORIZONTAL_ACCURACY`.
        live_period (:obj:`int` | :class:`datetime.timedelta`): Optional. Period in seconds for
            which the location can be updated, should be between
            :tg-const:`telegram.InputLocationMessageContent.MIN_LIVE_PERIOD` and
            :tg-const:`telegram.InputLocationMessageContent.MAX_LIVE_PERIOD`.

            .. deprecated:: v22.2
                |time-period-int-deprecated|
        heading (:obj:`int`): Optional. For live locations, a direction in which the user is
            moving, in degrees. Must be between
            :tg-const:`telegram.InputLocationMessageContent.MIN_HEADING` and
            :tg-const:`telegram.InputLocationMessageContent.MAX_HEADING` if specified.
        proximity_alert_radius (:obj:`int`): Optional. For live locations, a maximum distance
            for proximity alerts about approaching another chat member, in meters. Must be
            between :tg-const:`telegram.InputLocationMessageContent.MIN_PROXIMITY_ALERT_RADIUS`
            and :tg-const:`telegram.InputLocationMessageContent.MAX_PROXIMITY_ALERT_RADIUS`
            if specified.

    )Ú_live_periodÚheadingÚhorizontal_accuracyÚlatitudeÚ	longitudeÚproximity_alert_radiusN©Ú
api_kwargsr   r   Úlive_periodr   r   r   r   c                ó*  •— t         ‰|   |¬«       | j                  «       5  || _        || _        t        |«      | _        || _        || _        |rt        |«      nd | _
        | j                  | j                  f| _        d d d «       y # 1 sw Y   y xY w)Nr   )ÚsuperÚ__init__Ú	_unfrozenr   r   r   r   r   r   Úintr   Ú	_id_attrs)	Úselfr   r   r   r   r   r   r   Ú	__class__s	           €új/var/www/app/trading-bot/venv/lib/python3.12/site-packages/telegram/_inline/inputlocationmessagecontent.pyr   z$InputLocationMessageContent.__init__c   sŒ   ø€ ô 	‰Ñ JÐÔ/Ø^‰^Óñ 	=à#+ˆDŒMØ$-ˆDŒNô 7CÀ;Ó6OˆDÔØ5HˆDÔ$Ø'.ˆDŒLá/E”Ð*Ô+È4ð Ô'ð #Ÿm™m¨T¯^©^Ð<ˆDŒN÷	=÷ 	=ñ 	=ús   ¢AB	Â	BÚreturnc                 ó0   — t        | j                  d¬«      S )Nr   )Ú	attribute)r   r   )r   s    r   r   z'InputLocationMessageContent.live_period~   s   € ä" 4×#4Ñ#4ÀÔNÐNó    ÚHORIZONTAL_ACCURACYÚMIN_HEADINGÚMAX_HEADINGÚMIN_LIVE_PERIODÚMAX_LIVE_PERIODÚMIN_PROXIMITY_ALERT_RADIUSÚMAX_PROXIMITY_ALERT_RADIUS)NNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Úfloatr	   r   r   r   ÚpropertyÚdtmÚ	timedeltar   r   ÚLocationLimitr"   r   Ú__annotations__r#   r$   r%   r&   r'   r(   Ú__classcell__)r   s   @r   r   r      sœ  ø… ñ6ðp€Ið *.Ø,0Ø"Ø-1ð=ð '+ò=àð=ð ð=ð   $Ñ&ð	=ð
 # T™\ð=ð t‘ð=ð !$ d¡
ð=ð ˜t‘Oõ=ð6 ð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ðð #,×"9Ñ"9×"IÑ"I€OU˜3‘ZÓIðð #,×"9Ñ"9×"IÑ"I€OU˜3‘ZÓIðð .7×-DÑ-D×-_Ñ-_Ð  c¡
Ó_ðð .7×-DÑ-D×-_Ñ-_Ð  c¡
Ó_ór!   r   )r,   Údatetimer0   Útypingr   Útelegramr   Ú$telegram._inline.inputmessagecontentr   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer   Útelegram._utils.typesr   r	   r   © r!   r   ú<module>r=      s/   ðñ& \ã Ý å Ý DÝ 8Ý 8ß 6ôEÐ"5õ Er!   