This commit is contained in:
Daniil Gentili 2017-03-12 13:57:58 +01:00
commit 289006323f
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,6 @@ if ($MadelineProto === false) {
for ($x = 0; $x < $argv[2]; $x++) { for ($x = 0; $x < $argv[2]; $x++) {
$MadelineProto->request_call($argv[1]); $MadelineProto->request_call($argv[1]);
$MadelineProto->get_updates_difference(); $MadelineProto->get_updates_difference();
echo 'Wrote '.\danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto).' bytes'.PHP_EOL;
echo 'Wrote '.\danog\MadelineProto\Serialization::serialize('calls.madeline', $MadelineProto).' bytes'.PHP_EOL;
} }
$MadelineProto->messages->sendMessage(['peer' => $argv[1], 'message' => '[Powered by MadelineProto](https://github.com/danog/MadelineProto)', 'parse_mode' => 'markdown']); $MadelineProto->messages->sendMessage(['peer' => $argv[1], 'message' => '[Powered by MadelineProto](https://github.com/danog/MadelineProto)', 'parse_mode' => 'markdown']);

View File

@ -552,6 +552,7 @@ trait AuthKeyHandler
return $res['id']; return $res['id'];
} }
public function request_call($user) public function request_call($user)
{ {
$user = $this->get_info($user)['InputUser']; $user = $this->get_info($user)['InputUser'];