Ë
    †jµ#  ã                   óº   — d Z ddlmZm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 dd
lmZ ddlmZmZmZ erddlmZmZ  G d„ de«      Zy)zFThis module contains an object that represents a Telegram InlineQuery.é    )ÚCallableÚSequence)ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚLocation)ÚInlineQueryResultsButton)ÚTelegramObject)ÚUser)Úde_json_optional)ÚDEFAULT_NONE)ÚJSONDictÚODVInputÚ
TimePeriod)ÚBotÚInlineQueryResultc                   óò  ‡ — e Zd ZU dZdZ	 	 d%ddœdedededed	d
dedz  dedz  fˆ fd„Ze	d&dedddd fˆ fd„«       Z
	 	 	 	 d'ddeeeeddœded   eeged   dz  f   z  dedz  dedz  dedz  dedz  dedz  dedee   dee   dee   d ee   dedz  defd!„Zej,                  j.                  Zee   ed"<   	 ej,                  j6                  Zee   ed#<   	 ej,                  j8                  Zee   ed$<   ˆ xZS )(ÚInlineQuerya®  
    This object represents an incoming inline query. When the user sends an empty query, your bot
    could return some default or trending results.

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

    .. figure:: https://core.telegram.org/file/464001466/10e4a/r4FKyQ7gw5g.134366/f2        606a53d683374703
        :align: center

        Inline queries on Telegram

    .. seealso::
        The :class:`telegram.InlineQueryResult` classes represent the media the user can choose
        from (see above figure).

    Note:
        In Python :keyword:`from` is a reserved word. Use :paramref:`from_user` instead.

    .. versionchanged:: 20.0
        The following are now keyword-only arguments in Bot methods:
        ``{read, write, connect, pool}_timeout``, :paramref:`answer.api_kwargs`,
        ``auto_pagination``. Use a named argument for those,
        and notice that some positional arguments changed position as a result.

    .. versionchanged:: 22.0
        Removed constants ``MIN_START_PARAMETER_LENGTH`` and ``MAX_START_PARAMETER_LENGTH``.
        Use :attr:`telegram.constants.InlineQueryResultsButtonLimit.MIN_START_PARAMETER_LENGTH` and
        :attr:`telegram.constants.InlineQueryResultsButtonLimit.MAX_START_PARAMETER_LENGTH`
        instead.

    Args:
        id (:obj:`str`): Unique identifier for this query.
        from_user (:class:`telegram.User`): Sender.
        query (:obj:`str`): Text of the query (up to
            :tg-const:`telegram.InlineQuery.MAX_QUERY_LENGTH` characters).
        offset (:obj:`str`): Offset of the results to be returned, can be controlled by the bot.
        chat_type (:obj:`str`, optional): Type of the chat, from which the inline query was sent.
            Can be either :tg-const:`telegram.Chat.SENDER` for a private chat with the inline query
            sender, :tg-const:`telegram.Chat.PRIVATE`, :tg-const:`telegram.Chat.GROUP`,
            :tg-const:`telegram.Chat.SUPERGROUP` or :tg-const:`telegram.Chat.CHANNEL`. The chat
            type should be always known for requests sent from official clients and most
            third-party clients, unless the request was sent from a secret chat.

            .. versionadded:: 13.5
        location (:class:`telegram.Location`, optional): Sender location, only for bots that
            request user location.

    Attributes:
        id (:obj:`str`): Unique identifier for this query.
        from_user (:class:`telegram.User`): Sender.
        query (:obj:`str`): Text of the query (up to
            :tg-const:`telegram.InlineQuery.MAX_QUERY_LENGTH` characters).
        offset (:obj:`str`): Offset of the results to be returned, can be controlled by the bot.
        chat_type (:obj:`str`): Optional. Type of the chat, from which the inline query was sent.
            Can be either :tg-const:`telegram.Chat.SENDER` for a private chat with the inline query
            sender, :tg-const:`telegram.Chat.PRIVATE`, :tg-const:`telegram.Chat.GROUP`,
            :tg-const:`telegram.Chat.SUPERGROUP` or :tg-const:`telegram.Chat.CHANNEL`. The chat
            type should be always known for requests sent from official clients and most
            third-party clients, unless the request was sent from a secret chat.

            .. versionadded:: 13.5
        location (:class:`telegram.Location`): Optional. Sender location, only for bots that
            request user location.

    )Ú	chat_typeÚ	from_userÚidÚlocationÚoffsetÚqueryN©Ú
api_kwargsr   r   r   r   r   zLocation | Noner   r   c                ó¾   •— t         ‰| �  |¬«       || _        || _        || _        || _        || _        || _        | j                  f| _        | j                  «        y )Nr   )
ÚsuperÚ__init__r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)	Úselfr   r   r   r   r   r   r   Ú	__class__s	           €ú[/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_inline/inlinequery.pyr   zInlineQuery.__init__m   sW   ø€ ô 	‰Ñ JÐÔ/àˆŒØ(ˆŒØˆŒ
Ø!ˆŒð *2ˆŒØ%.ˆŒàŸ'™'˜ˆŒà�‰�ó    ÚdataÚbotz
Bot | NoneÚreturnc                 óÖ   •— | j                  |«      }t        |j                  dd«      t        |«      |d<   t        |j	                  d«      t
        |«      |d<   t        ‰| �  ||¬«      S )z,See :meth:`telegram.TelegramObject.de_json`.ÚfromNr   r   )r&   r'   )Ú_parse_datar   Úpopr   Úgetr   r   Úde_json)Úclsr&   r'   r#   s      €r$   r.   zInlineQuery.de_json‡   s`   ø€ ð �‰˜tÓ$ˆä,¨T¯X©X°f¸dÓ-CÄTÈ3ÓOˆˆ[ÑÜ+¨D¯H©H°ZÓ,@Ä(ÈCÓPˆˆZÑä‰w‰ D¨cˆÓ2Ð2r%   F)Úcurrent_offsetÚauto_paginationÚread_timeoutÚwrite_timeoutÚconnect_timeoutÚpool_timeoutr   Úresultsr   Ú
cache_timeÚis_personalÚnext_offsetÚbuttonr0   r1   r2   r3   r4   r5   c             ƒ   óÂ   K  — |r|rt        d«      ‚| j                  «       j                  | j                  |r| j                  n||||||||	|
||¬«      ƒ d{  –—† S 7 Œ­w)aÌ  Shortcut for::

            await bot.answer_inline_query(
                update.inline_query.id,
                *args,
                current_offset=self.offset if auto_pagination else None,
                **kwargs
            )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.answer_inline_query`.

        .. versionchanged:: 20.0
            Raises :class:`ValueError` instead of :class:`TypeError`.

        Keyword Args:
            auto_pagination (:obj:`bool`, optional): If set to :obj:`True`, :attr:`offset` will be
                passed as
                :paramref:`current_offset <telegram.Bot.answer_inline_query.current_offset>` to
                :meth:`telegram.Bot.answer_inline_query`.
                Defaults to :obj:`False`.

        Raises:
            ValueError: If both :paramref:`~telegram.Bot.answer_inline_query.current_offset` and
                :paramref:`auto_pagination` are supplied.
        z:current_offset and auto_pagination are mutually exclusive!)Úinline_query_idr0   r6   r7   r8   r9   r:   r2   r3   r4   r5   r   N)Ú
ValueErrorÚget_botÚanswer_inline_queryr   r   )r"   r6   r7   r8   r9   r:   r0   r1   r2   r3   r4   r5   r   s                r$   ÚanswerzInlineQuery.answer‘   sr   è ø€ ñX ™oÜÐYÓZÐZØ—\‘\“^×7Ñ7Ø ŸG™GÙ*9˜4Ÿ;š;¸~ØØ!Ø#Ø#ØØ%Ø'Ø+Ø%Ø!ð 8ó 
÷ 
ð 	
ð 
ús   ‚AAÁAÁAÚMAX_RESULTSÚMAX_OFFSET_LENGTHÚMAX_QUERY_LENGTH)NN)N)NNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r   r   Úclassmethodr.   r   r   r   Úintr   Úboolr	   r   Úfloatr@   r   ÚInlineQueryLimitÚRESULTSrA   r   Ú__annotations__rB   rC   Ú__classcell__)r#   s   @r$   r   r   &   s  ø… ñBðH P€Ið '+Ø $ðð '+òàðð ðð ð	ð
 ðð $ðð ˜‘:ðð ˜t‘Oõð4 ñ3˜8ð 3¨,ð 3À-ô 3ó ð3ð )-Ø#'Ø"&Ø26ð;
ð &*Ø %Ø(4Ø)5Ø+7Ø(4Ø&*ò!;
ð Ð(Ñ)¨H°c°U¸HÐEXÑ<YÐ\`Ñ<`Ð5`Ñ,aÑað;
ð
  Ñ%ð;
ð ˜D‘[ð;
ð ˜4‘Zð;
ð )¨4Ñ/ð;
ð ˜d™
ð;
ð ð;
ð ˜u‘oð;
ð   ‘ð;
ð " %™ð;
ð ˜u‘oð;
ð  ˜t‘Oð!;
ð" 
ó#;
ðz (×8Ñ8×@Ñ@€K��s‘Ó@ðð %.×$>Ñ$>×$PÑ$PÐ�u˜S‘zÓPðð $-×#=Ñ#=×#NÑ#NÐ�e˜C‘jÓNór%   r   N)rG   Úcollections.abcr   r   Útypingr   r   Útelegramr   Útelegram._files.locationr   Ú)telegram._inline.inlinequeryresultsbuttonr	   Útelegram._telegramobjectr
   Útelegram._userr   Útelegram._utils.argumentparsingr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r   r   r   r   r   © r%   r$   ú<module>r]      s@   ðñ( Mç .ß 'å Ý -Ý NÝ 3Ý Ý <Ý 5ß @Ñ @áß/ôv�.õ vr%   