mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 08:18:59 +01:00
Final fixes
This commit is contained in:
parent
5949b483a5
commit
99e842d9ce
@ -38,7 +38,6 @@ final class Conversion
|
||||
public static function importAuthorization(array $authorization, int $main_dc_id, string $session, SettingsAbstract|array $settings): API
|
||||
{
|
||||
$settings = Settings::parseFromLegacyFull($settings);
|
||||
$settings->getIpc()->setSlow(true);
|
||||
$settings->getLogger()->setLevel(Logger::ULTRA_VERBOSE);
|
||||
$settings->getAuth()->setPfs(true);
|
||||
$MadelineProto = new API($session, $settings);
|
||||
|
@ -109,7 +109,7 @@ use Webmozart\Assert\Assert;
|
||||
Magic::$script_cwd = $_GET['cwd'] ?? Magic::getcwd();
|
||||
|
||||
$session = new SessionPaths($session);
|
||||
$API = new API((string) $session, (new Ipc)->setSlow(true));
|
||||
$API = new API((string) $session, new Ipc);
|
||||
$API->initSelfRestart();
|
||||
$session->storeIpcState(new IpcState($runnerId));
|
||||
while (true) {
|
||||
|
Loading…
Reference in New Issue
Block a user