U
    g                     @   sL   d Z ddlmZ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Optional)	constants)TelegramObject)JSONDictc                       s   e Zd ZU dZdZddeeee d 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_kwargs)r   r	   r   c                   s4   t  j|d || _|| _| j| jf| _|   d S )Nr
   )super__init__r   r	   Z	_id_attrsZ_freeze)selfr   r	   r   	__class__ 8/tmp/pip-unpacked-wheel-swnnwir2/telegram/_botcommand.pyr   7   s
    zBotCommand.__init__MIN_COMMANDMAX_COMMANDMIN_DESCRIPTIONMAX_DESCRIPTION)__name__
__module____qualname____doc__	__slots__strr   r   r   r   ZBotCommandLimitr   r   int__annotations__r   r   r   __classcell__r   r   r   r   r      s   
 	r   N)r   typingr   r   Ztelegramr   Ztelegram._telegramobjectr   Ztelegram._utils.typesr   r   r   r   r   r   <module>   s
   