
    Yi                     B    S r SSKJr  SSKJr  SSKJr   " S S\5      rg)zQThis module contains objects related to the write access allowed service message.    )Optional)TelegramObject)JSONDictc                   n   ^  \ rS rSrSrSr   SSS.S\\   S\\   S\\   S	\\	   4U 4S
 jjjjr
SrU =r$ )WriteAccessAllowed   a  
This object represents a service message about a user allowing a bot to write messages after
adding it to the attachment menu, launching a Web App from a link, or accepting an explicit
request from a Web App sent by the method
`requestWriteAccess <https://core.telegram.org/bots/webapps#initializing-mini-apps>`_.

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

.. versionadded:: 20.0
.. versionchanged:: 20.6
   Added custom equality comparison for objects of this class.

Args:
    web_app_name (:obj:`str`, optional): Name of the Web App, if the access was granted when
        the Web App was launched from a link.

        .. versionadded:: 20.3
    from_request (:obj:`bool`, optional): :obj:`True`, if the access was granted after the user
     accepted an explicit request from a Web App sent by the method
     `requestWriteAccess <https://core.telegram.org/bots/webapps#initializing-mini-apps>`_.

     .. versionadded:: 20.6
    from_attachment_menu (:obj:`bool`, optional): :obj:`True`, if the access was granted when
     the bot was added to the attachment or side menu.

     .. versionadded:: 20.6

Attributes:
    web_app_name (:obj:`str`): Optional. Name of the Web App, if the access was granted when
        the Web App was launched from a link.

        .. versionadded:: 20.3
    from_request (:obj:`bool`): Optional. :obj:`True`, if the access was granted after the user
        accepted an explicit request from a Web App.

        .. versionadded:: 20.6
    from_attachment_menu (:obj:`bool`): Optional. :obj:`True`, if the access was granted when
        the bot was added to the attachment or side menu.

        .. versionadded:: 20.6

)from_attachment_menufrom_requestweb_app_nameN
api_kwargsr   r
   r	   r   c                   > [         TU ]  US9  Xl        X l        X0l        U R                  4U l        U R                  5         g )Nr   )super__init__r   r
   r	   	_id_attrs_freeze)selfr   r
   r	   r   	__class__s        G/app/.venv/lib/python3.13/site-packages/telegram/_writeaccessallowed.pyr   WriteAccessAllowed.__init__I   s@     	J/+7,84H!++-    )r   r	   r
   r   )NNN)__name__
__module____qualname____firstlineno____doc__	__slots__r   strboolr   r   __static_attributes____classcell__)r   s   @r   r   r      sg    *X II '+'+/3	 *.sm tn 'tn	 X& r   r   N)r   typingr   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r&      s    & X  3 *> >r   