U
    gL                     @   s<   d Z ddlmZ ddlmZ ddlmZ G dd deZdS )zGThis module contains an object that represents a Telegram Web App Info.    )Optional)TelegramObject)JSONDictc                       s6   e Zd ZdZdZddeee d fddZ  Z	S )
WebAppInfoa!  
    This object contains information about a `Web App <https://core.telegram.org/bots/webapps>`_.

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

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

    .. versionadded:: 20.0

    Args:
        url (:obj:`str`): An HTTPS URL of a Web App to be opened with additional data as specified
            in `Initializing Web Apps             <https://core.telegram.org/bots/webapps#initializing-mini-apps>`_.

    Attributes:
        url (:obj:`str`): An HTTPS URL of a Web App to be opened with additional data as specified
            in `Initializing Web Apps             <https://core.telegram.org/bots/webapps#initializing-mini-apps>`_.
    )urlN
api_kwargs)r   r   c                   s*   t  j|d || _| jf| _|   d S )Nr   )super__init__r   Z	_id_attrsZ_freeze)selfr   r   	__class__ 8/tmp/pip-unpacked-wheel-swnnwir2/telegram/_webappinfo.pyr
   4   s    
zWebAppInfo.__init__)
__name__
__module____qualname____doc__	__slots__strr   r   r
   __classcell__r   r   r   r   r      s   r   N)r   typingr   Ztelegram._telegramobjectr   Ztelegram._utils.typesr   r   r   r   r   r   <module>   s   