From 37f790739878289eedb4ae06cc3045232c869951 Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 19 Jul 2025 17:01:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20CommandStart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maxapi/types/command.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/maxapi/types/command.py b/maxapi/types/command.py index e04559b..0625d19 100644 --- a/maxapi/types/command.py +++ b/maxapi/types/command.py @@ -40,4 +40,19 @@ class BotCommand(BaseModel): """ name: str - description: Optional[str] = None \ No newline at end of file + description: Optional[str] = None + + +class CommandStart(Command): + + """ + Класс для представления команды /start бота. + + Attributes: + prefix (str): Префикс команды. По умолчанию '/'. + """ + + text = 'start' + + def __init__(self, prefix: str = '/'): + self.prefix = prefix \ No newline at end of file