§
    ¬eîi  ã                   ó‚   — d 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 erddlmZ  G d	„ d
e¦  «        ZdS )zRThis module contains the class that represent a Telegram InlineQueryResultsButton.é    )ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚTelegramObject)Úde_json_optional)ÚJSONDict)Ú
WebAppInfo)ÚBotc                   óà   ‡ — e Zd ZU dZdZ	 	 dddœdededz  dedz  dedz  fˆ fd	„Ze	dd
edddd fˆ fd„¦   «         Z
ej        j        Zee         ed<   	 ej        j        Zee         ed<   ˆ xZS )ÚInlineQueryResultsButtonaà
  This object represents a button to be shown above inline query results. You **must** use
    exactly one of the optional fields.

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

    Args:
        text (:obj:`str`): Label text on the button.
        web_app (:class:`telegram.WebAppInfo`, optional): Description of the
            `Web App <https://core.telegram.org/bots/webapps>`_ that will be launched when the
            user presses the button. The Web App will be able to switch back to the inline mode
            using the method
            `switchInlineQuery <https://core.telegram.org/bots/webapps#initializing-mini-apps>`_
            inside the Web App.
        start_parameter (:obj:`str`, optional):  Deep-linking parameter for the
            :guilabel:`/start` message sent to the bot when user presses the switch button.
            :tg-const:`telegram.constants.InlineQueryResultsButtonLimit.MIN_START_PARAMETER_LENGTH`
            -
            :tg-const:`telegram.constants.InlineQueryResultsButtonLimit.MAX_START_PARAMETER_LENGTH`
            characters, only ``A-Z``, ``a-z``, ``0-9``, ``_`` and ``-`` are allowed.

            Example:
                An inline bot that sends YouTube videos can ask the user to connect the bot to
                their YouTube account to adapt search results accordingly. To do this, it displays
                a 'Connect your YouTube account' button above the results, or even before showing
                any. The user presses the button, switches to a private chat with the bot and, in
                doing so, passes a start parameter that instructs the bot to return an OAuth link.
                Once done, the bot can offer a switch_inline button so that the user can easily
                return to the chat where they wanted to use the bot's inline capabilities.

    Attributes:
        text (:obj:`str`): Label text on the button.
        web_app (:class:`telegram.WebAppInfo`): Optional. Description of the
            `Web App <https://core.telegram.org/bots/webapps>`_ that will be launched when the
            user presses the button. The Web App will be able to switch back to the inline mode
            using the method ``web_app_switch_inline_query`` inside the Web App.
        start_parameter (:obj:`str`): Optional. Deep-linking parameter for the
            :tg-const:`telegram.constants.InlineQueryResultsButtonLimit.MIN_START_PARAMETER_LENGTH`
            -
            :tg-const:`telegram.constants.InlineQueryResultsButtonLimit.MAX_START_PARAMETER_LENGTH`
            characters, only ``A-Z``, ``a-z``, ``0-9``, ``_`` and ``-`` are allowed.

    )Ústart_parameterÚtextÚweb_appN©Ú
api_kwargsr   r   r   r   c                óÐ   •— t          ¦   «                              |¬¦  «         || _        || _        || _        | j        | j        | j        f| _        |                      ¦   «          d S )Nr   )ÚsuperÚ__init__r   r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   Ú	__class__s        €úm/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_inline/inlinequeryresultsbutton.pyr   z!InlineQueryResultsButton.__init__P   s`   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/ð ˆŒ	ð +2ˆŒØ+:ˆÔàœ) T¤\°4Ô3GÐHˆŒà�Š‰Œˆˆˆó    ÚdataÚbotz
Bot | NoneÚreturnc                 ó¢   •— t          |                     d¦  «        t          |¦  «        |d<   t          ¦   «                              ||¬¦  «        S )z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r   )r   Úgetr	   r   Úde_json)Úclsr   r   r   s      €r   r    z InlineQueryResultsButton.de_jsone   s@   ø€ õ +¨4¯8ª8°IÑ+>Ô+>Å
ÈCÑPÔPˆˆY‰å‰wŒw�Š D¨cˆÑ2Ô2Ð2r   ÚMIN_START_PARAMETER_LENGTHÚMAX_START_PARAMETER_LENGTH)NN)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr	   r   r   Úclassmethodr    r   ÚInlineQueryResultsButtonLimitr"   r   ÚintÚ__annotations__r#   Ú__classcell__)r   s   @r   r   r   !   s.  ø€ € € € € € ð*ð *ðX 7€Ið
 &*Ø&*ð	ð '+ðð ð àðð ˜dÑ"ðð ˜t™ð	ð ˜t‘Oðð ð ð ð ð ð* ð3ð 3˜8ð 3¨,ð 3ÐB\ð 3ð 3ð 3ð 3ð 3ñ „[ð3ð 	Ô/ÔJð   c¤
ð ð ñ ð _àÔ/ÔJð   c¤
ð ð ñ ð _Ð^Ð^Ð^r   r   N)r'   Útypingr   r   Útelegramr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr   Útelegram._webappinfor	   r
   r   © r   r   ú<module>r6      sâ   ðð& YÐ Xà 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'à Ð Ð Ð Ð Ð Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø <Ð <Ð <Ð <Ð <Ð <Ø *Ð *Ð *Ð *Ð *Ð *Ø +Ð +Ð +Ð +Ð +Ð +àð ØÐÐÐÐÐðS_ð S_ð S_ð S_ð S_˜~ñ S_ô S_ð S_ð S_ð S_r   