We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e8a0d commit 0fd4784Copy full SHA for 0fd4784
1 file changed
src/Telegram/Bot.php
@@ -83,11 +83,11 @@ public function isValidToken(bool $thoroughCheck): bool
83
* Replies directly to the webhook update with a payload in the body.
84
*
85
* @param string $method The API method.
86
- * @param array|object|null $arguments The arguments for the method.
+ * @param array|object $arguments The arguments for the method.
87
88
* @return void
89
*/
90
- protected function replyAsPayload(string $method, array|object|null $arguments = null): void
+ protected function replyAsPayload(string $method, array|object $arguments = []): void
91
{
92
$payload = json_encode(['method' => $method, ...$arguments], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR);
93
0 commit comments