Event handler for not authorized sessions

This commit is contained in:
Alexander Pankratov 2020-01-19 21:04:07 +03:00
parent b67e6a828a
commit a42356592e

View File

@ -41,7 +41,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
public function onAny($update): void
{
$session = Client::getSessionName($this->API->wrapper->session);
$session = Client::getSessionName($this->API->wrapper->session ?? null);
Logger::getInstance()->info("Received update from session: {$session}");
foreach (static::$eventListeners as $clientId => $callback) {