setEventHandler update.

This commit is contained in:
Alexander Pankratov 2020-03-05 16:42:09 +03:00
parent f238aa2151
commit 7acf384d50

View File

@ -486,9 +486,9 @@ class ApiExtensions
});
}
public function setEventHandler(): void
public function setEventHandler(): Promise
{
$this->madelineProto->setEventHandler(EventHandler::class);
return call(fn() => yield $this->madelineProto->setEventHandler(EventHandler::class));
}
}