diff --git a/src/Telegram.php b/src/Telegram.php index 506af69f..376d78c1 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -347,7 +347,7 @@ public function getCommandClassName(string $auth, string $command, string $filep $command_class = $command_namespace . '\\' . $this->commandNameToClassName($command); - if (class_exists($command_class)) { + if (class_exists($command_class, false)) { return $command_class; }