1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 03:11:12 +01:00
This commit is contained in:
Daniil Gentili 2023-10-12 22:41:02 +02:00
parent 1c6c1ac782
commit 1f21deb5b1
2 changed files with 2 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit 51cb5ad3fc8e6d4dd3a5ee8fdee4a6eb5939ea8f
Subproject commit 326dc6dee0cc0303db36c4bd5e74a241f8f9ad57

View File

@ -109,7 +109,7 @@ trait CallHandler
{
$cancellation = $args['cancellation'] ?? null;
$cancellation?->throwIfRequested();
if (isset($args['id']['_']) && isset($args['id']['dc_id']) && ($args['id']['_'] === 'inputBotInlineMessageID' || $args['id']['_'] === 'inputBotInlineMessageID64') && $this->datacenter != $args['id']['dc_id']) {
if (isset($args['id']) && is_array($args['id']) && isset($args['id']['_']) && isset($args['id']['dc_id']) && ($args['id']['_'] === 'inputBotInlineMessageID' || $args['id']['_'] === 'inputBotInlineMessageID64') && $this->datacenter != $args['id']['dc_id']) {
return $this->API->methodCallAsyncWrite($method, $args, $args['id']['dc_id']);
}
$file = \in_array($method, ['upload.saveFilePart', 'upload.saveBigFilePart', 'upload.getFile', 'upload.getCdnFile'], true);