diff --git a/examples/downloadRenameBot.php b/examples/downloadRenameBot.php index a4fe57f4..0056b0f3 100644 --- a/examples/downloadRenameBot.php +++ b/examples/downloadRenameBot.php @@ -123,7 +123,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler 'reply_to_msg_id' => $messageId, 'media' => [ '_' => 'inputMediaUploadedDocument', - 'file' => $file, + 'file' => $url, 'attributes' => [ ['_' => 'documentAttributeFilename', 'file_name' => $name] ] diff --git a/tests/makephar.sh b/tests/makephar.sh index dfb2921f..b011e75d 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -113,6 +113,7 @@ export MTPROTO_SETTINGS='{"logger":{"logger_level":5}}' php tools/makephar.php $HOME/phar5 "madeline$php$branch.phar" $TRAVIS_COMMIT +cat tests/testing.php tests/testing.php <