Бот: отправка help-сообщения при /start

This commit is contained in:
2025-06-21 21:12:29 +08:00
parent c1ce931677
commit e42d7d75fe

View File

@@ -75,6 +75,7 @@ class Bot
$this->bot->sendChatAction($this->update->getMessage()->getChat()->getId(), 'typing');
$commandText = $this->getBotCommandText();
return match (true) {
str_starts_with($commandText, '/start') => $this->processHelpCommand(),
str_starts_with($commandText, '/list') => $this->processListCommand(),
str_starts_with($commandText, '/info') => $this->processInfoCommand(),
str_starts_with($commandText, '/help') => $this->processHelpCommand(),