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 )zIThis module contains an object that represents a Telegram CopyTextButton.é    )ÚOptional)ÚTelegramObject)ÚJSONDictc                       s8   e Zd ZdZdZddœdedee f‡ fdd„Z‡  Z	S )	ÚCopyTextButtona  
    This object represents an inline keyboard button that copies specified text to the clipboard.

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

    .. versionadded:: 21.7

    Args:
        text (:obj:`str`): The text to be copied to the clipboard;
            :tg-const:`telegram.constants.InlineKeyboardButtonLimit.MIN_COPY_TEXT`-
            :tg-const:`telegram.constants.InlineKeyboardButtonLimit.MAX_COPY_TEXT` characters

    Attributes:
        text (:obj:`str`): The text to be copied to the clipboard;
            :tg-const:`telegram.constants.InlineKeyboardButtonLimit.MIN_COPY_TEXT`-
            :tg-const:`telegram.constants.InlineKeyboardButtonLimit.MAX_COPY_TEXT` characters

    )ÚtextN©Ú
api_kwargsr   r   c                   s*   t ƒ j|d || _| jf| _|  ¡  d S )Nr   )ÚsuperÚ__init__r   Ú	_id_attrsÚ_freeze)Úselfr   r   ©Ú	__class__© úK/var/www/html/venv/lib/python3.10/site-packages/telegram/_copytextbutton.pyr
   1   s   
zCopyTextButton.__init__)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r   r
   Ú__classcell__r   r   r   r   r      s    (r   N)r   Útypingr   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   r   r   r   r   Ú<module>   s
   