Skip to content

Commit b129fa0

Browse files
committed
Small fix
1 parent 7ba9811 commit b129fa0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/fuzzer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Amp\Http\Client\Request;
55
use danog\MadelineProto\API;
66
use danog\MadelineProto\Logger;
7+
use danog\MadelineProto\Magic;
78
use danog\MadelineProto\PTSException;
89
use danog\MadelineProto\RPCErrorException;
910
use danog\MadelineProto\Settings;
@@ -60,6 +61,10 @@ function getTL(TLSchema $schema)
6061
$layer = getTL($schema);
6162
$res = '';
6263

64+
Magic::start(true);
65+
RPCErrorException::$errorMethodMap = [];
66+
RPCErrorException::$descriptions = [];
67+
6368
$auth = '';
6469
try {
6570
$auth = getenv('TELERPC_AUTH_TOKEN') ?: '';

0 commit comments

Comments
 (0)