mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 20:04:45 +01:00
Bugfix
This commit is contained in:
parent
f2b76d1184
commit
e654b88521
@ -42,7 +42,7 @@ class Client
|
||||
$this->startLoggedInSession($sessionName);
|
||||
}
|
||||
|
||||
$this->startNotLoggedInSessions();
|
||||
Loop::defer(fn() => yield $this->startNotLoggedInSessions());
|
||||
|
||||
$sessionsCount = count($sessionFiles);
|
||||
warning(
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user