We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 999fed8 commit 3a1737bCopy full SHA for 3a1737b
src/Telegram.php
@@ -866,7 +866,7 @@ public function resetCommandsPaths(string $path): Telegram
866
if (!is_dir($path)) {
867
TelegramLog::error('reset commands path "' . $path . '" does not exist.');
868
} elseif (!in_array($path, $this->commands_paths, true)) {
869
- $this->commands_paths = $path;
+ $this->commands_paths = [$path];
870
}
871
872
return $this;
0 commit comments