From 3c55cc22ca2d0d7ac3bda2adb6b85c22c5989abd Mon Sep 17 00:00:00 2001 From: IRPCPRO <35578127+irpcpro@users.noreply.github.com> Date: Sat, 8 Apr 2023 22:58:44 +0330 Subject: [PATCH] Update TelegramResponse.php --- src/TelegramResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TelegramResponse.php b/src/TelegramResponse.php index a2fcd83c..f6cae081 100644 --- a/src/TelegramResponse.php +++ b/src/TelegramResponse.php @@ -160,7 +160,7 @@ public function getDecodedBody(): ?array */ public function getResult() { - return $this->decodedBody['result']; + return $this->decodedBody['result'] ?? false; } /**