This commit is contained in:
Alexander Pankratov 2020-04-27 04:43:37 +03:00
parent f2b76d1184
commit e654b88521
2 changed files with 6 additions and 5 deletions

View File

@ -42,7 +42,7 @@ class Client
$this->startLoggedInSession($sessionName);
}
$this->startNotLoggedInSessions();
Loop::defer(fn() => yield $this->startNotLoggedInSessions());
$sessionsCount = count($sessionFiles);
warning(

View File

@ -79,11 +79,12 @@ class ApiExtensions
return call(
function() use ($data) {
$response = yield $this->getHistory($data);
if (!empty($response['messages'])) {
foreach ($response['messages'] as &$message) {
$message['message'] = $this->formatMessage($message['message'] ?? null, $message['entities'] ?? []);
}
unset($message);
}
return $response;
}