Ë
    †jÐ  ã                   ó6   — d Z ddlmZ ddlmZ  G d„ de«      Zy)zQThis module contains objects related to the write access allowed service message.é    )ÚTelegramObject)ÚJSONDictc                   ó^   ‡ — e Zd ZdZdZ	 	 	 d
ddœdedz  dedz  dedz  dedz  fˆ fd	„Zˆ xZ	S )ÚWriteAccessAllowedab  
    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         ‰| �  |¬«       || _        || _        || _        | j                  f| _        | j                  «        y )Nr
   )ÚsuperÚ__init__r	   r   r   Ú	_id_attrsÚ_freeze)Úselfr	   r   r   r   Ú	__class__s        €ú[/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_writeaccessallowed.pyr   zWriteAccessAllowed.__init__H   sF   ø€ ô 	‰Ñ JÐÔ/Ø(4ˆÔØ)5ˆÔØ1EˆÔ!à×+Ñ+Ð-ˆŒà�‰�ó    )NNN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚboolr   r   Ú__classcell__)r   s   @r   r   r      sf   ø„ ñ*ðX I€Ið $(Ø$(Ø,0ð	ð '+òà˜D‘jðð ˜T‘kðð # T™kð	ð ˜t‘O÷ñ r   r   N)r   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   © r   r   ú<module>r       s   ðñ& Xå 3Ý *ô>˜õ >r   