o
    Zzjl	  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )zEThis module contains an object that represents a Telegram WebAppData.é    )ÚTelegramObject)ÚJSONDictc                       s<   e Zd ZdZdZddœdedededB f‡ fdd	„Z‡  ZS )
Ú
WebAppDataa  Contains data sent from a `Web App <https://core.telegram.org/bots/webapps>`_ to the bot.

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

    Examples:
        :any:`Webapp Bot <examples.webappbot>`

    .. versionadded:: 20.0

    Args:
        data (:obj:`str`): The data. Be aware that a bad client can send arbitrary data in this
            field.
        button_text (:obj:`str`): Text of the :paramref:`~telegram.KeyboardButton.web_app` keyboard
            button, from which the Web App was opened.

    Attributes:
        data (:obj:`str`): The data. Be aware that a bad client can send arbitrary data in this
            field.
        button_text (:obj:`str`): Text of the :paramref:`~telegram.KeyboardButton.web_app` keyboard
            button, from which the Web App was opened.

            Warning:
                Be aware that a bad client can send arbitrary data in this field.
    )Úbutton_textÚdataN©Ú
api_kwargsr   r   r   c                   s4   t ƒ j|d� || _|| _| j| jf| _|  ¡  d S )Nr   )ÚsuperÚ__init__r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   ©Ú	__class__© úO/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_webappdata.pyr
   6   s
   zWebAppData.__init__)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r
   Ú__classcell__r   r   r   r   r      s    ,r   N)r   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   r   r   r   r   Ú<module>   s   