This commit is contained in:
Daniil Gentili 2017-08-28 12:00:49 +02:00
parent e2e0c775e7
commit f93007f8b1

View File

@ -233,6 +233,7 @@ trait Files
public function download_to_file($message_media, $file, $cb = null)
{
$file = preg_replace('|/+|', '/', $file);
if (!file_exists($file)) {
touch($file);
}