From 7acf384d5099e24a321b1671fc815ad9ab02d799 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Thu, 5 Mar 2020 16:42:09 +0300 Subject: [PATCH] setEventHandler update. --- src/MadelineProtoExtensions/ApiExtensions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MadelineProtoExtensions/ApiExtensions.php b/src/MadelineProtoExtensions/ApiExtensions.php index 19b5e97..9318c8d 100644 --- a/src/MadelineProtoExtensions/ApiExtensions.php +++ b/src/MadelineProtoExtensions/ApiExtensions.php @@ -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)); } } \ No newline at end of file