mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 20:04:45 +01:00
Event handler for not authorized sessions
This commit is contained in:
parent
b67e6a828a
commit
a42356592e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user