
    N[i                     8    d dl Z d dl mZ d dl mZ  G d d      Zy)    N)raw)typesc                   $    e Zd ZdddeddddfdZy	)
AnswerWebAppQueryselfzpyrogram.Clientweb_app_query_idresultztypes.InlineQueryResultreturnztypes.SentWebAppMessagec                   K   | j                  t        j                  j                  j	                  ||j                  |        d{                d{   }t        j                  j                  |      S 7 47 %w)al  Set the result of an interaction with a `Web App <https://core.telegram.org/bots/webapps>`_ and send a
        corresponding message on behalf of the user to the chat from which the query originated.

        .. include:: /_includes/usable-by/bots.rst

        Parameters:
            web_app_query_id (``str``):
                Unique identifier for the answered query.

            result (:obj:`~pyrogram.types.InlineQueryResult`):
                A list of results for the inline query.

        Returns:
            :obj:`~pyrogram.types.SentWebAppMessage`: On success the sent web app message is returned.
        N)bot_query_idr	   )	invoker   	functionsmessagesSendWebViewResultMessagewriter   SentWebAppMessage_parse)r   r   r	   rs       ]/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/bots/answer_web_app_query.pyanswer_web_app_queryz&AnswerWebAppQuery.answer_web_app_query   sn     * ++MM"";;-#\\$// < 
 
 &&--a00	 0
s$   AA?A;A?A=$A?=A?N)__name__
__module____qualname__strr        r   r   r      s+    111 *1 
#	1r   r   )pyrogramr   r   r   r   r   r   <module>r      s   &   1 1r   