diff --git a/calls.php b/calls.php index f00b2c1e2..1a4a7fd00 100644 --- a/calls.php +++ b/calls.php @@ -66,7 +66,6 @@ if ($MadelineProto === false) { for ($x = 0; $x < $argv[2]; $x++) { $MadelineProto->request_call($argv[1]); $MadelineProto->get_updates_difference(); - - echo 'Wrote '.\danog\MadelineProto\Serialization::serialize('calls.madeline', $MadelineProto).' bytes'.PHP_EOL; + echo 'Wrote '.\danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto).' bytes'.PHP_EOL; } $MadelineProto->messages->sendMessage(['peer' => $argv[1], 'message' => '[Powered by MadelineProto](https://github.com/danog/MadelineProto)', 'parse_mode' => 'markdown']); diff --git a/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php b/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php index aa63fc144..52cef90a2 100644 --- a/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/AuthKeyHandler.php @@ -552,6 +552,7 @@ trait AuthKeyHandler return $res['id']; } + public function request_call($user) { $user = $this->get_info($user)['InputUser'];