L i@ ndZddlmZmZddlmZddlmZddlm Z ddl m Z erddl m Z Gdd eZy ) z3This module contains the DirectMessagesTopic class.) TYPE_CHECKINGOptional)TelegramObject)User)de_json_optional)JSONDict)Botc teZdZdZdZ ddddedeedeeffdZ e dd ed ed d dffd Z xZ S)DirectMessagesTopica This class represents a topic for direct messages in a chat. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`topic_id` and :attr:`user` is equal. .. versionadded:: 22.4 Args: topic_id (:obj:`int`): Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. user (:class:`telegram.User`, optional): Information about the user that created the topic. .. hint:: According to Telegram, this field is always present as of Bot API 9.2. Attributes: topic_id (:obj:`int`): Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. user (:class:`telegram.User`): Optional. Information about the user that created the topic. .. hint:: According to Telegram, this field is always present as of Bot API 9.2. )topic_iduserN api_kwargsr r rct||||_||_|j|jf|_|j y)Nr)super__init__r r _id_attrs_freeze)selfr r r __class__s c/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_directmessagestopic.pyrzDirectMessagesTopic.__init__AsD J/& %) --3 databotr returnc|j|}t|jdt||d<t|||S)z,See :meth:`telegram.TelegramObject.de_json`.r )rr) _parse_datargetrrde_json)clsrrrs rrzDirectMessagesTopic.de_jsonOsAt$'(8$DV wDc22r)N) __name__ __module__ __qualname____doc__ __slots__intrrrr classmethodr __classcell__)rs@rr r sq<%I59 ^b  #+D> IQRZI[ 383(5/3EZ33rr N)r$typingrrtelegram._telegramobjectrtelegram._userrtelegram._utils.argumentparsingrtelegram._utils.typesr telegram._botr r rrr0s+&:*3<*!63.63r