Skip to content

Commit 7c7acb3

Browse files
committed
Made public the attributes of TelegramResponse
1 parent e648ee4 commit 7c7acb3

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/Telegram/TelegramResponse.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
*/
1414
class TelegramResponse
1515
{
16-
private object|array $body;
17-
private ?int $statusCode;
18-
private ?string $error;
16+
public object|array $body;
17+
public ?int $statusCode;
18+
public ?string $error;
1919

2020
/**
2121
* TelegramResponse constructor.
@@ -30,14 +30,4 @@ public function __construct(object|array $body, ?int $statusCode = null, ?string
3030
$this->statusCode = $statusCode;
3131
$this->error = $error;
3232
}
33-
34-
/**
35-
* Get the response body from the Telegram API.
36-
*
37-
* @return object|array The response body.
38-
*/
39-
public function getBody(): object|array
40-
{
41-
return $this->body;
42-
}
4333
}

0 commit comments

Comments
 (0)