1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 07:34:41 +01:00
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++) {
$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']);

View File

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