U
    ;g                     @   s2   d dl Z d dl mZ d dl mZ G dd dZdS )    N)raw)typesc                   @   s    e Zd ZdedddddZdS )AnswerWebAppQueryzpyrogram.Clientztypes.InlineQueryResultztypes.SentWebAppMessage)selfweb_app_query_idresultreturnc                    s6   |  tjjj||| I dH dI dH }tj|S )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)Zbot_query_idr   )	Zinvoker   Z	functionsmessagesZSendWebViewResultMessagewriter   ZSentWebAppMessage_parse)r   r   r   r r   j/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/bots/answer_web_app_query.pyanswer_web_app_query   s    
z&AnswerWebAppQuery.answer_web_app_queryN)__name__
__module____qualname__strr   r   r   r   r   r      s
   r   )Zpyrogramr   r   r   r   r   r   r   <module>   s   