Compare commits

...

6 Commits

Author SHA1 Message Date
c005d86a47 BUmp 2024-07-13 15:26:17 +02:00
19ccf73d9e Merge remote-tracking branch 'origin/master' into upstream_docker_image 2024-07-13 15:24:30 +02:00
Alexander Pankratov
3d6a97d4cf Fix getPwrChat 2024-06-13 17:23:19 +02:00
Alexander Pankratov
774615b058 Update madelineProto 2024-06-02 21:28:34 +02:00
Alexander Pankratov
ee98c71109 Update madelineProto 2024-05-31 15:00:10 +02:00
Alexander Pankratov
de3b029534 Fix: allow json serializable object in response 2024-05-31 14:58:07 +02:00
3 changed files with 7 additions and 13 deletions

12
composer.lock generated
View File

@ -4700,16 +4700,16 @@
},
{
"name": "composer/semver",
"version": "3.4.0",
"version": "3.4.2",
"source": {
"type": "git",
"url": "https://github.com/composer/semver.git",
"reference": "35e8d0af4486141bc745f23a29cc2091eb624a32"
"reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32",
"reference": "35e8d0af4486141bc745f23a29cc2091eb624a32",
"url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6",
"reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6",
"shasum": ""
},
"require": {
@ -4761,7 +4761,7 @@
"support": {
"irc": "ircs://irc.libera.chat:6697/composer",
"issues": "https://github.com/composer/semver/issues",
"source": "https://github.com/composer/semver/tree/3.4.0"
"source": "https://github.com/composer/semver/tree/3.4.2"
},
"funding": [
{
@ -4777,7 +4777,7 @@
"type": "tidelift"
}
],
"time": "2023-08-31T09:50:34+00:00"
"time": "2024-07-12T11:35:52+00:00"
},
{
"name": "composer/xdebug-handler",

View File

@ -14,8 +14,6 @@ use ReflectionProperty;
use RuntimeException;
use TelegramApiServer\EventObservers\EventObserver;
use function Amp\Socket\SocketAddress\fromString;
final class Client
{
public static Client $self;

View File

@ -92,7 +92,7 @@ abstract class AbstractApiController
switch (true) {
case $contentType === 'application/x-www-form-urlencoded':
case \mb_strpos($contentType, 'multipart/form-data') !== false:
case \str_contains($contentType, 'multipart/form-data'):
$form = (new StreamingFormParser())->parseForm($this->request);
$post = [];
@ -215,10 +215,6 @@ abstract class AbstractApiController
return $this->page['response'];
}
if (!\is_array($this->page['response']) && !\is_scalar($this->page['response'])) {
$this->page['response'] = null;
}
$data = [
'success' => $this->page['success'],
'errors' => $this->page['errors'],