§
    êd×ià&  ã                   óš   — d Z ddl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 dd	lmZmZ erdd
lmZ  G d„ de¦  «        ZdS )zSThis module contains the classes that represent Telegram InlineQueryResultLocation.é    N)ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚInlineKeyboardMarkup)ÚInlineQueryResult)Úto_timedelta)Úget_timedelta_value)ÚJSONDictÚ
TimePeriod)ÚInputMessageContentc                   ó2  ‡ — e Zd ZU dZdZ	 	 	 	 	 	 	 	 	 dddœdedededed	edz  d
edz  dddedz  de	dz  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        j        Zee	         ed<   ˆ xZS )ÚInlineQueryResultLocationaò  
    Represents a location on a map. By default, the location will be sent by the user.
    Alternatively, you can use :attr:`input_message_content` to send a message with the specified
    content instead of the location.

    .. versionchanged:: 20.5
        |removed_thumb_wildcard_note|

    Args:
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.
        latitude (:obj:`float`): Location latitude in degrees.
        longitude (:obj:`float`): Location longitude in degrees.
        title (:obj:`str`): Location title.
        horizontal_accuracy (:obj:`float`, optional): The radius of uncertainty for the location,
            measured in meters; 0-
            :tg-const:`telegram.InlineQueryResultLocation.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.InlineQueryResultLocation.MIN_LIVE_PERIOD` and
            :tg-const:`telegram.InlineQueryResultLocation.MAX_LIVE_PERIOD`.

            .. 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.InlineQueryResultLocation.MIN_HEADING` and
            :tg-const:`telegram.InlineQueryResultLocation.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.InlineQueryResultLocation.MIN_PROXIMITY_ALERT_RADIUS`
            and :tg-const:`telegram.InlineQueryResultLocation.MAX_PROXIMITY_ALERT_RADIUS`
            if specified.
        reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): Inline keyboard attached
            to the message.
        input_message_content (:class:`telegram.InputMessageContent`, optional): Content of the
            message to be sent instead of the location.
        thumbnail_url (:obj:`str`, optional): Url of the thumbnail for the result.

            .. versionadded:: 20.2
        thumbnail_width (:obj:`int`, optional): Thumbnail width.

            .. versionadded:: 20.2
        thumbnail_height (:obj:`int`, optional): Thumbnail height.

            .. versionadded:: 20.2

    Attributes:
        type (:obj:`str`): :tg-const:`telegram.constants.InlineQueryResultType.LOCATION`.
        id (:obj:`str`): Unique identifier for this result,
            :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`-
            :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes.
        latitude (:obj:`float`): Location latitude in degrees.
        longitude (:obj:`float`): Location longitude in degrees.
        title (:obj:`str`): Location title.
        horizontal_accuracy (:obj:`float`): Optional. The radius of uncertainty for the location,
            measured in meters; 0-
            :tg-const:`telegram.InlineQueryResultLocation.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.InlineQueryResultLocation.MIN_LIVE_PERIOD` and
            :tg-const:`telegram.InlineQueryResultLocation.MAX_LIVE_PERIOD` or
            :tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` for live
            locations that can be edited indefinitely.

            .. 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.InlineQueryResultLocation.MIN_HEADING` and
            :tg-const:`telegram.InlineQueryResultLocation.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.InlineQueryResultLocation.MIN_PROXIMITY_ALERT_RADIUS`
            and :tg-const:`telegram.InlineQueryResultLocation.MAX_PROXIMITY_ALERT_RADIUS`
            if specified.
        reply_markup (:class:`telegram.InlineKeyboardMarkup`): Optional. Inline keyboard attached
            to the message.
        input_message_content (:class:`telegram.InputMessageContent`): Optional. Content of the
            message to be sent instead of the location.
        thumbnail_url (:obj:`str`): Optional. Url of the thumbnail for the result.

            .. versionadded:: 20.2
        thumbnail_width (:obj:`int`): Optional. Thumbnail width.

            .. versionadded:: 20.2
        thumbnail_height (:obj:`int`): Optional. Thumbnail height.

            .. versionadded:: 20.2

    )Ú_live_periodÚheadingÚhorizontal_accuracyÚinput_message_contentÚlatitudeÚ	longitudeÚproximity_alert_radiusÚreply_markupÚthumbnail_heightÚthumbnail_urlÚthumbnail_widthÚtitleN©Ú
api_kwargsÚidr   r   r   Úlive_periodr   r   zInputMessageContent | Noner   r   r   r   r   r   r   c                ó¬  •— t          ¦   «                              t          j        j        ||¬¦  «         |                      ¦   «         5  || _        || _        || _        t          |¦  «        | _
        || _        || _        || _        || _        || _        || _        |	| _        |
rt%          |
¦  «        nd | _        d d d ¦  «         d S # 1 swxY w Y   d S )Nr   )ÚsuperÚ__init__r   ÚInlineQueryResultTypeÚLOCATIONÚ	_unfrozenr   r   r   r   r   r   r   r   r   r   r   r   Úintr   )Úselfr   r   r   r   r   r   r   r   r   r   r   r   r   r   Ú	__class__s                  €úg/root/projects/qq-shell/venv/lib/python3.11/site-packages/telegram/_inline/inlinequeryresultlocation.pyr!   z"InlineQueryResultLocation.__init__   s  ø€ õ& 	‰Œ×ÒÔ8ÔAÀ2ÐR\ÐÑ]Ô]Ð]Ø^Š^ÑÔð 	ð 	Ø#+ˆDŒMØ$-ˆDŒNØ#ˆDŒJõ 7CÀ;Ñ6OÔ6OˆDÔØ=IˆDÔØEZˆDÔ&Ø-:ˆDÔØ/>ˆDÔ Ø0@ˆDÔ!Ø5HˆDÔ$Ø'.ˆDŒLà/EÐO•Ð*Ñ+Ô+Ð+È4ð Ô'ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   Á	A3C	Ã	CÃCÚreturnc                 ó.   — t          | j        d¬¦  «        S )Nr   )Ú	attribute)r	   r   )r&   s    r(   r   z%InlineQueryResultLocation.live_period¶   s   € å" 4Ô#4ÀÐNÑNÔNÐNó    ÚHORIZONTAL_ACCURACYÚMIN_HEADINGÚMAX_HEADINGÚMIN_LIVE_PERIODÚMAX_LIVE_PERIODÚMIN_PROXIMITY_ALERT_RADIUSÚMAX_PROXIMITY_ALERT_RADIUS)	NNNNNNNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚfloatr   r   r%   r
   r!   ÚpropertyÚdtmÚ	timedeltar   r   ÚLocationLimitr-   r   Ú__annotations__r.   r/   r0   r1   r2   r3   Ú__classcell__)r'   s   @r(   r   r   #   sR  ø€ € € € € € ð[ð [ðz€Ið* *.Ø48Ø>BØ,0Ø"Ø-1Ø$(Ø&*Ø'+ð$ð  '+ð!$ð $ð $àð$ð ð$ð ð	$ð
 ð$ð   $Ñ&ð$ð +¨TÑ1ð$ð  <ð$ð # T™\ð$ð t‘ð$ð !$ d¡
ð$ð ˜T‘zð$ð ˜t™ð$ð  ™*ð$ð  ˜t‘Oð!$ð $ð $ð $ð $ð $ðL ðO˜S 3¤=Ñ0°4Ñ7ð Oð Oð Oñ „XðOð '0Ô&=Ô&QÐ˜˜sœÐQÐQÑQðð (Ô5ÔA€Ks”ÐAÐAÑAðð (Ô5ÔA€Ks”ÐAÐAÑAðð #,Ô"9Ô"I€OU˜3”ZÐIÐIÑIðð #,Ô"9Ô"I€OU˜3”ZÐIÐIÑIðð .7Ô-DÔ-_Ð  c¤
Ð_Ð_Ñ_ðð .7Ô-DÔ-_Ð  c¤
Ð_Ð_Ñ_ðð ð ð r,   r   )r7   Údatetimer<   Útypingr   r   Útelegramr   Ú%telegram._inline.inlinekeyboardmarkupr   Ú"telegram._inline.inlinequeryresultr   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer	   Útelegram._utils.typesr
   r   r   r   © r,   r(   ú<module>rJ      sý   ðð& ZÐ Yà Ð Ð Ð Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'à Ð Ð Ð Ð Ð Ø FÐ FÐ FÐ FÐ FÐ FØ @Ð @Ð @Ð @Ð @Ð @Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6àð -Ø,Ð,Ð,Ð,Ð,Ð,ðyð yð yð yð yÐ 1ñ yô yð yð yð yr,   