mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:19:00 +01:00
kkkk no breaking changes
This commit is contained in:
parent
8c5de357d0
commit
abdddc42cc
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user