diff --git a/src/Telegram.php b/src/Telegram.php index 075b6fc6..fd6a45d4 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -303,7 +303,7 @@ public function getCommandsList(): array } } } catch (Exception $e) { - throw new TelegramException('Error getting commands from path: ' . $path, $e); + throw new TelegramException('Error getting commands from path: ' . $path, $e->getCode(), $e); } }