This commit is contained in:
Daniil Gentili 2017-07-19 23:43:16 +02:00
parent d278293589
commit af1df14fc3
3 changed files with 20 additions and 13 deletions

View File

@ -80,7 +80,12 @@ class Lua
if (is_callable($cb)) {
$cb($result, $cb_extra);
}
array_walk_recursive($result, function (&$value, $key) { if ($value instanceof \danog\MadelineProto\TL\Types\Button) $value = $value->jsonSerialize(); });
array_walk_recursive($result, function (&$value, $key) {
if ($value instanceof \danog\MadelineProto\TL\Types\Button) {
$value = $value->jsonSerialize();
}
});
return $result;
}

View File

@ -48,6 +48,7 @@ trait AuthKeyHandler
$this->handle_pending_updates();
$this->get_updates_difference();
return $controller;
}
@ -106,7 +107,7 @@ trait AuthKeyHandler
'enable_AEC' => true,
'enable_AGC' => true,
'log_file_path' => $this->settings['calls']['log_file_path'],
'stats_dump_file_path' => $this->settings['calls']['stats_dump_file_path']
'stats_dump_file_path' => $this->settings['calls']['stats_dump_file_path'],
],
'auth_key' => $key['auth_key'],
'network_type' => $this->settings['calls']['network_type'],
@ -190,6 +191,7 @@ trait AuthKeyHandler
$controller->discard();
}
}
return $this->calls[$call];
}