Skip to content

Commit 24067d7

Browse files
committed
Move command files around and put abstract command classes files together.
1 parent 02e690e commit 24067d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Telegram.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function __construct($api_key, $bot_name)
168168
$this->setUploadPath(BASE_PATH . '/../Upload');
169169

170170
//Add default system commands path
171-
$this->addCommandsPath(BASE_COMMANDS_PATH . '/System');
171+
$this->addCommandsPath(BASE_COMMANDS_PATH . '/SystemCommands');
172172

173173
Request::initialize($this);
174174
}
@@ -465,10 +465,10 @@ public function processUpdate(Update $update)
465465

466466
//Load admin commands
467467
if ($this->isAdmin($message->getFrom()->getId())) {
468-
$this->addCommandsPath(BASE_COMMANDS_PATH . '/Admin', false);
468+
$this->addCommandsPath(BASE_COMMANDS_PATH . '/AdminCommands', false);
469469
}
470470

471-
$this->addCommandsPath(BASE_COMMANDS_PATH . '/User', false);
471+
$this->addCommandsPath(BASE_COMMANDS_PATH . '/UserCommands', false);
472472

473473
$type = $message->getType();
474474
if ($type === 'command') {

0 commit comments

Comments
 (0)