Skip to content

Commit 60407a3

Browse files
committed
Fixed string to object conversion error
1 parent b1ecd6e commit 60407a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Telegram/Bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function sendRequest(string $method, array|object|null $arguments = nu
9494

9595
return new TelegramResponse([
9696
"statusCode" => $response->getStatusCode() ?? null,
97-
"body" => $response->getBody()->getContents() ?? null,
97+
"body" => json_decode($response->getBody()->getContents() ?? null),
9898
"error" => $e
9999
]);
100100
}

0 commit comments

Comments
 (0)