o
    Zzj¼  ã                   @   sH   d Z ddlm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 Telegram Bot Command.é    )ÚFinal)Ú	constants)ÚTelegramObject)ÚJSONDictc                       s”   e Zd ZU dZdZddœdedededB f‡ fdd	„Zej	j
Z
ee ed
< 	 ej	jZee ed< 	 ej	jZee ed< 	 ej	jZee ed< ‡  ZS )Ú
BotCommandaj  
    This object represents a bot command.

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

    Args:
        command (:obj:`str`): Text of the command; :tg-const:`telegram.BotCommand.MIN_COMMAND`-
            :tg-const:`telegram.BotCommand.MAX_COMMAND` characters. Can contain only lowercase
            English letters, digits and underscores.
        description (:obj:`str`): Description of the command;
            :tg-const:`telegram.BotCommand.MIN_DESCRIPTION`-
            :tg-const:`telegram.BotCommand.MAX_DESCRIPTION` characters.

    Attributes:
        command (:obj:`str`): Text of the command; :tg-const:`telegram.BotCommand.MIN_COMMAND`-
            :tg-const:`telegram.BotCommand.MAX_COMMAND` characters. Can contain only lowercase
            English letters, digits and underscores.
        description (:obj:`str`): Description of the command;
            :tg-const:`telegram.BotCommand.MIN_DESCRIPTION`-
            :tg-const:`telegram.BotCommand.MAX_DESCRIPTION` characters.

    )ÚcommandÚdescriptionN©Ú
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__© úO/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_botcommand.pyr   7   s
   zBotCommand.__init__ÚMIN_COMMANDÚMAX_COMMANDÚMIN_DESCRIPTIONÚMAX_DESCRIPTION)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r   r   ÚBotCommandLimitr   r   ÚintÚ__annotations__r   r   r   Ú__classcell__r   r   r   r   r      s   
 $	r   N)
r   Útypingr   Útelegramr   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   r   r   r   r   Ú<module>   s   