L i6dZddlmZddlmZddlmZGddeZGddeZGd d eZ Gd d eZ Gd deZ GddeZ GddeZ y)z>This module contains objects related to Telegram forum topics.)Optional)TelegramObject)JSONDictc ReZdZdZdZ d dddedededeed eef fd Z xZ S) ForumTopica This object represents a forum topic. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`message_thread_id`, :attr:`name` and :attr:`icon_color` are equal. .. versionadded:: 20.0 Args: message_thread_id (:obj:`int`): Unique identifier of the forum topic name (:obj:`str`): Name of the topic icon_color (:obj:`int`): Color of the topic icon in RGB format icon_custom_emoji_id (:obj:`str`, optional): Unique identifier of the custom emoji shown as the topic icon. Attributes: message_thread_id (:obj:`int`): Unique identifier of the forum topic name (:obj:`str`): Name of the topic icon_color (:obj:`int`): Color of the topic icon in RGB format icon_custom_emoji_id (:obj:`str`): Optional. Unique identifier of the custom emoji shown as the topic icon. ) icon_coloricon_custom_emoji_idmessage_thread_idnameN api_kwargsr r rr r ct||||_||_||_||_|j|j|jf|_|jyNr )super__init__r r rr _id_attrs_freeze)selfr r rr r __class__s Z/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_forumtopic.pyrzForumTopic.__init__6sX J/&7 )3G!00$))T__M N) __name__ __module__ __qualname____doc__ __slots__intstrrrr __classcell__rs@rrrsb0TI/3 *.  'sm X&rrc NeZdZdZdZ d dddededeedeeffd Z xZ S) ForumTopicCreateda> This object represents the content of a service message about a new forum topic created in the chat. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`name` and :attr:`icon_color` are equal. .. versionadded:: 20.0 Args: name (:obj:`str`): Name of the topic icon_color (:obj:`int`): Color of the topic icon in RGB format icon_custom_emoji_id (:obj:`str`, optional): Unique identifier of the custom emoji shown as the topic icon. Attributes: name (:obj:`str`): Name of the topic icon_color (:obj:`int`): Color of the topic icon in RGB format icon_custom_emoji_id (:obj:`str`): Optional. Unique identifier of the custom emoji shown as the topic icon. )rr r Nr r rr r ct||||_||_||_|j|jf|_|j yr)rrr rr rr)rr rr r rs rrzForumTopicCreated.__init__csH J/ )3G!))T__5 rr) rrrrrrrrrrr r!s@rr#r#JsW,?I /3  *. 'sm  X& rr#c<eZdZdZdZdddeeddffdZxZS)ForumTopicClosedz This object represents a service message about a forum topic closed in the chat. Currently holds no information. .. versionadded:: 20.0 Nr r returncFt|||jyrrrrrr rs rrzForumTopicClosed.__init__ J/ r rrrrrrrrr r!s@rr&r&u/I;?hx&8Drr&c<eZdZdZdZdddeeddffdZxZS)ForumTopicReopenedz This object represents a service message about a forum topic reopened in the chat. Currently holds no information. .. versionadded:: 20.0 r'Nr r r(cFt|||jyrr*r+s rrzForumTopicReopened.__init__r,rr-r!s@rr0r0r.rr0c ReZdZdZdZ d dddeedeedeeffdZxZ S) ForumTopicEditedaI This object represents a service message about an edited forum topic. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`name` and :attr:`icon_custom_emoji_id` are equal. .. versionadded:: 20.0 Args: name (:obj:`str`, optional): New name of the topic, if it was edited. icon_custom_emoji_id (:obj:`str`, optional): New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed. Attributes: name (:obj:`str`): Optional. New name of the topic, if it was edited. icon_custom_emoji_id (:obj:`str`): Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed. )r r Nr r r r ct||||_||_|j|jf|_|j yr)rrr r rr)rr r r rs rrzForumTopicEdited.__init__sC J/#' 3G!))T%>%>? r)NN) rrrrrrrrrr r!s@rr3r3sT&1I#.2  *. sm 'sm  X&  rr3c8eZdZdZdZdddeeffdZxZS)GeneralForumTopicHiddenz This object represents a service message about General forum topic hidden in the chat. Currently holds no information. .. versionadded:: 20.0 r'Nr r cFt|||jyrr*r+s rrz GeneralForumTopicHidden.__init__r,rr-r!s@rr6r6(I;?hx&8rr6c8eZdZdZdZdddeeffdZxZS)GeneralForumTopicUnhiddenz This object represents a service message about General forum topic unhidden in the chat. Currently holds no information. .. versionadded:: 20.0 r'Nr r cFt|||jyrr*r+s rrz"GeneralForumTopicUnhidden.__init__r,rr-r!s@rr:r:r8rr:N)rtypingrtelegram._telegramobjectrtelegram._utils.typesrrr#r&r0r3r6r:r'rrr?sk&E3*,,^((V ~    #~#L n   r