o
    "h                     @   s<   d Z ddlmZ ddlmZ ddlmZ G dd deZdS )zFThis module contains an object that represents a Direct Message Price.    )Optional)TelegramObject)JSONDictc                	       sD   e Zd ZdZdZ	d
dddedee dee f fdd	Z	  Z
S )DirectMessagePriceChangeda  
    Describes a service message about a change in the price of direct messages sent to a channel
    chat.

    .. versionadded:: 22.3

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`are_direct_messages_enabled`, and
    :attr:`direct_message_star_count` are equal.

    Args:
        are_direct_messages_enabled (:obj:`bool`):
            :obj:`True`, if direct messages are enabled for the channel chat; :obj:`False`
            otherwise.
        direct_message_star_count (:obj:`int`, optional):
            The new number of Telegram Stars that must be paid by users for each direct message
            sent to the channel. Does not apply to users who have been exempted by administrators.
            Defaults to ``0``.

    Attributes:
        are_direct_messages_enabled (:obj:`bool`):
            :obj:`True`, if direct messages are enabled for the channel chat; :obj:`False`
            otherwise.
        direct_message_star_count (:obj:`int`):
            Optional. The new number of Telegram Stars that must be paid by users for each direct
            message sent to the channel. Does not apply to users who have been exempted by
            administrators. Defaults to ``0``.
    )are_direct_messages_enableddirect_message_star_countN
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__ V/var/www/html/venv/lib/python3.10/site-packages/telegram/_directmessagepricechanged.pyr   <   s
   z"DirectMessagePriceChanged.__init__)N)__name__
__module____qualname____doc__	__slots__boolr   intr   r   __classcell__r   r   r   r   r      s    r   N)r   typingr   telegram._telegramobjectr   telegram._utils.typesr   r   r   r   r   r   <module>   s
   