Skip to content

Commit 3a1737b

Browse files
committed
feat: add resetCommandsPaths
1 parent 999fed8 commit 3a1737b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Telegram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ public function resetCommandsPaths(string $path): Telegram
866866
if (!is_dir($path)) {
867867
TelegramLog::error('reset commands path "' . $path . '" does not exist.');
868868
} elseif (!in_array($path, $this->commands_paths, true)) {
869-
$this->commands_paths = $path;
869+
$this->commands_paths = [$path];
870870
}
871871

872872
return $this;

0 commit comments

Comments
 (0)