1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 08:18:59 +01:00

Final fixes

This commit is contained in:
Daniil Gentili 2023-05-19 22:24:07 +02:00
parent 5949b483a5
commit 99e842d9ce
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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) {