From 26a10f012ac120961e91a0953c1e12dacb372ea0 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 18 Oct 2020 20:43:07 +0200 Subject: [PATCH] uploadEncryptedFile --- src/danog/MadelineProto/TL/TL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 4de07d49..b327d17a 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -614,7 +614,7 @@ class TL if (isset($arguments['message']['reply_to_msg_id'])) { $arguments['message']['reply_to_random_id'] = $arguments['message']['reply_to_msg_id']; } - } elseif ($method === 'messages.sendEncryptedFile') { + } elseif ($method === 'messages.sendEncryptedFile' || $method === 'messages.uploadEncryptedFile') { if (isset($arguments['file'])) { if ((!\is_array($arguments['file']) || !(isset($arguments['file']['_']) && $this->constructors->findByPredicate($arguments['file']['_']) === 'InputEncryptedFile')) && $this->API->getSettings()->getFiles()->getAllowAutomaticUpload()) { $arguments['file'] = (yield from $this->API->uploadEncrypted($arguments['file']));