U
    2Òtcë  ã                   @   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.é    )ÚAny)ÚTelegramObjectc                   @   s&   e Zd ZdZdZeeedœdd„Zd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.

    .. versionadded:: 13.12

    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 :attr:`~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 :attr:`~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.
    ©ÚdataÚbutton_textZ	_id_attrs)r   r   Ú_kwargsc                 K   s   || _ || _| j | jf| _d S )Nr   )Úselfr   r   r   © r
   ú7/tmp/pip-unpacked-wheel-2u9rcp5s/telegram/webappdata.pyÚ__init__5   s    zWebAppData.__init__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r   r
   r
   r
   r   r      s   r   N)r   Útypingr   Ztelegramr   r   r
   r
   r
   r   Ú<module>   s   