Бот: отправка help-сообщения при /start
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user