This commit is contained in:
Daniil Gentili 2017-08-29 17:41:48 +02:00
commit dfef5e3458
2 changed files with 1 additions and 1 deletions

View File

@ -96,6 +96,7 @@ class API extends APIFactory
public function serialize($filename)
{
Logger::log(['Serializing MadelineProto...']);
return Serialization::serialize($filename, $this);
}
}

View File

@ -73,7 +73,6 @@ if ($MadelineProto === false) {
\danog\MadelineProto\Logger::log(['Registering new user'], \danog\MadelineProto\Logger::NOTICE);
$authorization = $MadelineProto->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): '));
}
} else {
$MadelineProto->bot_login(getenv('BOT_TOKEN'));
}