Skip to content

Commit 5d40f10

Browse files
committed
Modified sendRequest() behavior.
Now everything is sent json encoded
1 parent 8095909 commit 5d40f10

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Telegram/Bot.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,7 @@ protected function sendRequest(string $method, array|object|null $arguments = nu
109109
$options = [];
110110

111111
if (!empty($arguments)) {
112-
if (is_array($arguments)) {
113-
$options['form_params'] = $arguments;
114-
} else {
115-
$options['json'] = $arguments;
116-
}
112+
$options['json'] = $arguments;
117113
}
118114

119115
$response = $client->post($telegramUrl, $options);

0 commit comments

Comments
 (0)