Ë
    S"“jÂ
  ã                   ó.   — d dl Z ddlmZ  G d„ de«      Zy)é    Né   )ÚInlineResultc                   ó@   ‡ — e Zd ZdZddœˆ fd„
Zd„ Zd„ Zd„ Zd„ Zˆ xZ	S )	ÚInlineResultsaj  
    Custom class that encapsulates :tl:`BotResults` providing
    an abstraction to easily access some commonly needed features
    (such as clicking one of the results to select it)

    Note that this is a list of `InlineResult
    <telethon.tl.custom.inlineresult.InlineResult>`
    so you can iterate over it or use indices to
    access its elements. In addition, it has some
    attributes.

    Attributes:
        result (:tl:`BotResults`):
            The original :tl:`BotResults` object.

        query_id (`int`):
            The random ID that identifies this query.

        cache_time (`int`):
            For how long the results should be considered
            valid. You can call `results_valid` at any
            moment to determine if the results are still
            valid or not.

        users (:tl:`User`):
            The users present in this inline query.

        gallery (`bool`):
            Whether these results should be presented
            in a grid (as a gallery of images) or not.

        next_offset (`str`, optional):
            The string to be used as an offset to get
            the next chunk of results, if any.

        switch_pm (:tl:`InlineBotSwitchPM`, optional):
            If presents, the results should show a button to
            switch to a private conversation with the bot using
            the text in this object.
    N©Úentityc                óŒ  •‡‡‡— t         ‰| �  ˆˆˆfd„‰j                  D «       «       ‰| _        ‰j                  | _        ‰j
                  | _        t        j                  «       | j
                  z   | _        ‰j                  | _        t        ‰j                  «      | _
        ‰j                  | _        ‰j                  | _        y )Nc              3   óP   •K  — | ]  }t        ‰|‰j                  ‰¬ «      –— Œ y­w)r   N)r   Úquery_id)Ú.0ÚxÚclientr   Úoriginals     €€€úa/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/telethon/tl/custom/inlineresults.pyú	<genexpr>z)InlineResults.__init__.<locals>.<genexpr>0   s-   øè ø€ ò 4Øô & f¨a°×1BÑ1BÈ6×RÐRñ 4ùs   ƒ#&)ÚsuperÚ__init__ÚresultsÚresultr   Ú
cache_timeÚtimeÚ_valid_untilÚusersÚboolÚgalleryÚnext_offsetÚ	switch_pm)Úselfr   r   r   Ú	__class__s    ```€r   r   zInlineResults.__init__/   s•   û€ Ü‰Ñõ 4Ø"*×"2Ñ"2ô4ô 	4ð ˆŒØ ×)Ñ)ˆŒØ"×-Ñ-ˆŒÜ ŸI™I›K¨$¯/©/Ñ9ˆÔØ—^‘^ˆŒ
Ü˜H×,Ñ,Ó-ˆŒØ#×/Ñ/ˆÔØ!×+Ñ+ˆ�ó    c                 óD   — t        j                   «       | j                  k  S )z}
        Returns `True` if the cache time has not expired
        yet and the results can still be considered valid.
        )r   r   ©r   s    r   Úresults_validzInlineResults.results_valid<   s   € ô
 �y‰y‹{˜T×.Ñ.Ñ.Ð.r    c           	      óÚ   ‡— dj                  dj                  ˆfd„| D «       «      | j                  | j                  | j                  | j
                  | j                  | j                  «      S )NzT[{}, query_id={}, cache_time={}, users={}, gallery={}, next_offset={}, switch_pm={}]z, c              3   ó.   •K  — | ]  } ‰|«      –— Œ y ­w©N© )r   r   Úitem_functions     €r   r   z(InlineResults._to_str.<locals>.<genexpr>F   s   øè ø€ Ò5¨1‘m A×&Ñ5ùs   ƒ)ÚformatÚjoinr   r   r   r   r   r   )r   r(   s    `r   Ú_to_strzInlineResults._to_strC   sU   ø€ ð0ß06±Ø�I‰IÓ5°Ô5Ó5Ø�M‰MØ�O‰OØ�J‰JØ�L‰LØ×ÑØ�N‰Nó1
ð		r    c                 ó,   — | j                  t        «      S r&   )r+   Ústrr"   s    r   Ú__str__zInlineResults.__str__O   s   € Ø�|‰|œCÓ Ð r    c                 ó,   — | j                  t        «      S r&   )r+   Úreprr"   s    r   Ú__repr__zInlineResults.__repr__R   s   € Ø�|‰|œDÓ!Ð!r    )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r#   r+   r.   r1   Ú__classcell__)r   s   @r   r   r      s'   ø„ ñ'ðP 48ö ,ò/ò
ò!ö"r    r   )r   Úinlineresultr   Úlistr   r'   r    r   ú<module>r9      s   ðÛ å &ôM"�Dõ M"r    