
    YPi@                     n    d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ erddlmZ  G d d	e      Zy
)z3This module contains the DirectMessagesTopic class.    )TYPE_CHECKINGOptional)TelegramObject)User)de_json_optional)JSONDict)Botc            	       t     e Zd ZdZdZ	 ddddedee   dee   f fdZ	e
dd	ed
ed   dd f fd       Z xZ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_iduserN
api_kwargsr   r   r   c                    t         |   |       || _        || _        | j                  | j                  f| _        | j                          y )Nr   )super__init__r   r   	_id_attrs_freeze)selfr   r   r   	__class__s       S/root/twitch_bot/venv/lib/python3.12/site-packages/telegram/_directmessagestopic.pyr   zDirectMessagesTopic.__init__A   sD     	J/ & %)	--3    databotr	   returnc                     | j                  |      }t        |j                  d      t        |      |d<   t        |   ||      S )z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r   )_parse_datar   getr   r   de_json)clsr   r   r   s      r   r   zDirectMessagesTopic.de_jsonO   sA     t$'(8$DVwDc22r   )N)__name__
__module____qualname____doc__	__slots__intr   r   r   r   classmethodr   __classcell__)r   s   @r   r   r       sq    < %I 59^b#+D>IQRZI[ 38 3(5/ 3EZ 3 3r   r   N)r$   typingr   r   telegram._telegramobjectr   telegram._userr   telegram._utils.argumentparsingr   telegram._utils.typesr   telegram._botr	   r    r   r   <module>r0      s+   & : * 3  < *!63. 63r   