From c638d1c02b3fd685eac8ef3c72dd52095f8af820 Mon Sep 17 00:00:00 2001 From: dionysus Date: Thu, 27 Apr 2023 11:24:39 +0300 Subject: [PATCH] Update Telegram.php --- src/Telegram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Telegram.php b/src/Telegram.php index a3f7fcd..405e7e3 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -35,7 +35,7 @@ public static function handleObject(object $message) : array | string RequestException::class => self::handleRequestException($message), Collection::class => $message->toArray(), Exception::class => ['message' => $message->getMessage()], - default => print_r($message, true) + default => ['message' => print_r($message, true)] }; }