1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 13:14:40 +01:00

Cleanup messages

This commit is contained in:
Daniil Gentili 2023-01-15 17:09:57 +01:00
parent 840bec45ec
commit 269e9c5616

View File

@ -58,7 +58,7 @@ trait FilesLogic
$messageMedia = $messageMedia->getFile();
}
if (\is_string($messageMedia) && ($size === null || $mime === null || $name === null)) {
throw new Exception('downloadToBrowser only supports bot file IDs if the file size and MIME type are also specified in the third and fourth parameters of the method.');
throw new Exception('downloadToBrowser only supports bot file IDs if the file size, file name and MIME type are also specified in the third, fourth and fifth parameters of the method.');
}
$headers = [];
@ -173,7 +173,7 @@ trait FilesLogic
}
if (\is_string($messageMedia) && ($size === null || $mime === null || $name === null)) {
throw new Exception('downloadToBrowser only supports bot file IDs if the file size and MIME type are also specified in the third and fourth parameters of the method.');
throw new Exception('downloadToResponse only supports bot file IDs if the file size, file name and MIME type are also specified in the fourth, fifth and sixth parameters of the method.');
}
$messageMedia = $this->getDownloadInfo($messageMedia);