o
    N,h@                     @   sh   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	 d	eZd
S )z3This module contains the DirectMessagesTopic class.    )TYPE_CHECKINGOptional)TelegramObject)User)de_json_optional)JSONDict)Botc                	       sh   e Zd ZdZdZ	ddddedee dee f fdd	Z	e
dd
eded dd f fddZ  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                   s4   t  j|d || _|| _| j| jf| _|   d S )Nr   )super__init__r
   r   	_id_attrs_freeze)selfr
   r   r   	__class__ i/var/www/www-root/data/www/bot.pdev.uz/venv/lib/python3.10/site-packages/telegram/_directmessagestopic.pyr   A   s
   zDirectMessagesTopic.__init__databotr   returnc                    s0   |  |}t|dt||d< t j||dS )z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r   )_parse_datar   getr   r   de_json)clsr   r   r   r   r   r   O   s   
zDirectMessagesTopic.de_json)N)__name__
__module____qualname____doc__	__slots__intr   r   r   r   classmethodr   __classcell__r   r   r   r   r	       s    *r	   N)r!   typingr   r   telegram._telegramobjectr   telegram._userr   telegram._utils.argumentparsingr   telegram._utils.typesr   telegram._botr   r	   r   r   r   r   <module>   s   