L iBdZddlmZddlmZddlmZGddeZy)zQThis module contains objects related to the write access allowed service message.)Optional)TelegramObject)JSONDictc ^eZdZdZdZ d dddeedeedeedeeffd Z xZ 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 `_. 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 `_. .. 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 rr ct||||_||_||_|jf|_|j y)Nr )super__init__r r r _id_attrs_freeze)selfr r rr __class__s b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_writeaccessallowed.pyrzWriteAccessAllowed.__init__JsF J/+7,84H!++- )NNN) __name__ __module__ __qualname____doc__ __slots__rstrboolrr __classcell__)rs@rrrsg*XII'+'+/3  *. smtn'tn  X& rrN)rtypingrtelegram._telegramobjectrtelegram._utils.typesrrrrr"s &X3*>>r