Small bugfix

This commit is contained in:
Daniil Gentili 2018-03-29 20:34:24 +02:00
parent 1df07f05b5
commit 4600c8ed08

View File

@ -26,6 +26,11 @@ if (!file_exists(__DIR__.'/av.version') || file_get_contents(__DIR__.'/av.versio
}
}
require __DIR__.'/madeline.php';
require __DIR__.'/functions.php';
require __DIR__.'/_config.php';
if (!file_exists('bot.lock')) {
touch('bot.lock');
}
@ -45,9 +50,6 @@ while (!$locked) {
}
}
require __DIR__.'/madeline.php';
require __DIR__.'/functions.php';
require __DIR__.'/_config.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['logger' => ['logger_level' => 5]]);
$MadelineProto->start();