
    YiI                     R    S r SSKJrJr  SSKJr  SSKJr  SSKJ	r	   " S S\5      r
g)	zUThis module contains the classes that represent Telegram InputLocationMessageContent.    )FinalOptional)	constants)InputMessageContent)JSONDictc                   4  ^  \ rS rSr% SrSr    SSS.S\S\S\\   S	\\   S
\\   S\\   S\\	   4U 4S jjjjr
\R                  R                  r\\   \S'    \R                  R                   r\\   \S'    \R                  R"                  r\\   \S'    \R                  R$                  r\\   \S'    \R                  R&                  r\\   \S'    \R                  R(                  r\\   \S'    \R                  R*                  r\\   \S'   SrU =r$ )InputLocationMessageContent   a  
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`, 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.
    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`): 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`.
    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.

)headinghorizontal_accuracylatitudelive_period	longitudeproximity_alert_radiusN
api_kwargsr   r   r   r   r   r   r   c                  > [         TU ]  US9  U R                  5          Xl        X l        X0l        X@l        XPl        U(       a  [        U5      OS U l	        U R                  U R                  4U l
        S S S 5        g ! , (       d  f       g = f)Nr   )super__init__	_unfrozenr   r   r   r   r   intr   	_id_attrs)	selfr   r   r   r   r   r   r   	__class__s	           W/app/.venv/lib/python3.13/site-packages/telegram/_inline/inputlocationmessagecontent.pyr   $InputLocationMessageContent.__init__Y   ss     	J/^^#+M$-N /:8K$*1L/E*+4 ' #mmT^^<DN s   AA==
BHORIZONTAL_ACCURACYMIN_HEADINGMAX_HEADINGMIN_LIVE_PERIODMAX_LIVE_PERIODMIN_PROXIMITY_ALERT_RADIUSMAX_PROXIMITY_ALERT_RADIUS)r   r   r   r   r   r   r   )NNNN)__name__
__module____qualname____firstlineno____doc__	__slots__floatr   r   r   r   r   LocationLimitr   r   __annotations__r   r   r    r!   r"   r#   __static_attributes____classcell__)r   s   @r   r	   r	      su   0d"I &*/3!%04= *.== = c]	=
 &e_= #= !)= X&= =6 '0&=&=&Q&QsQ (55AAKsA (55AAKsA #,"9"9"I"IOU3ZI #,"9"9"I"IOU3ZI .7-D-D-_-_c
_ .7-D-D-_-_c
_    r	   N)r(   typingr   r   telegramr   $telegram._inline.inputmessagecontentr   telegram._utils.typesr   r	    r/   r   <module>r5      s&   & \ "  D *z"5 zr/   