
    'il	                     6    d Z ddlmZ ddlmZ  G d de      Zy)zEThis module contains an object that represents a Telegram WebAppData.    )TelegramObject)JSONDictc                   @     e Zd ZdZdZdddedededz  f fdZ x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                    t         |   |       || _        || _        | j                  | j                  f| _        | j                          y )Nr	   )super__init__r   r   	_id_attrs_freeze)selfr   r   r
   	__class__s       ^/home/obispo/Crisostomo_bridge/mision_env/lib/python3.12/site-packages/telegram/_webappdata.pyr   zWebAppData.__init__6   sA    J/	 +))T%5%56    )	__name__
__module____qualname____doc__	__slots__strr   r   __classcell__)r   s   @r   r   r      s5    4 (IUY S s 8d?  r   r   N)r   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r      s   & L 3 *% %r   