kkkk no breaking changes

This commit is contained in:
Daniil Gentili 2017-11-03 19:46:24 +03:00
parent 8c5de357d0
commit abdddc42cc
2 changed files with 1 additions and 2 deletions

View File

@ -58,6 +58,6 @@ class Serialization
*/
public static function deserialize($filename, $no_updates = false)
{
throw new \danog\MadelineProto\Exception('You can\'t call \danog\MadelineProto\Serialization::deserialize($filename) anymore, use new \danog\MadelineProto\API($filename) instead'.PHP_EOL.PHP_EOL.'Protip: run the following command to fix all of your scripts:'.PHP_EOL.PHP_EOL."find . -type f -exec sed 's/\\\\danog\\\\MadelineProto\\\\Serialization::deserialize/new \\\\danog\\\\MadelineProto\\\\API/g' -i {} +".PHP_EOL.PHP_EOL, 0, null, 'MadelineProto', 0);
return new \danog\MadelineProto\API($filename);
}
}

View File

@ -36,7 +36,6 @@ if (file_exists('web_data.php')) {
echo 'Deserializing MadelineProto from session.madeline...'.PHP_EOL;
$MadelineProto = false;
try {
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
} catch (\danog\MadelineProto\Exception $e) {