
    Yi	                     B    S r SSKJr  SSKJr  SSKJr   " S S\5      rg)zEThis module contains an object that represents a Telegram WebAppData.    )Optional)TelegramObject)JSONDictc                   N   ^  \ rS rSrSrSrSS.S\S\S\\   4U 4S	 jjjr	S
r
U =r$ )
WebAppData   a  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                   > [         TU ]  US9  Xl        X l        U R                  U R                  4U l        U R                  5         g )Nr   )super__init__r
   r	   	_id_attrs_freeze)selfr
   r	   r   	__class__s       ?/app/.venv/lib/python3.13/site-packages/telegram/_webappdata.pyr   WebAppData.__init__8   s=    J/	 +))T%5%56    )r   r	   r
   )__name__
__module____qualname____firstlineno____doc__	__slots__strr   r   r   __static_attributes____classcell__)r   s   @r   r   r      s6    4 (IX\ S s 8HCU  r   r   N)r   typingr   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r$      s    & L  3 *% %r   