mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Fix: getSessionList statuses
This commit is contained in:
parent
9ef088f39a
commit
3c35d24129
@ -57,8 +57,7 @@ class SystemApiExtensions
|
||||
{
|
||||
$sessions = [];
|
||||
foreach ($this->client->instances as $session => $instance) {
|
||||
/** @var API $instance */
|
||||
$authorized = $instance->API->authorized ?? null;
|
||||
$authorized = $instance->getAuthorization();
|
||||
switch ($authorized) {
|
||||
case API::NOT_LOGGED_IN;
|
||||
$status = 'NOT_LOGGED_IN';
|
||||
|
Loading…
Reference in New Issue
Block a user