From eafc2464a9969c1857873e3a7a3d2aed3403d1c1 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 20 Sep 2017 19:51:04 +0200 Subject: [PATCH] Fixes to lua module --- src/danog/MadelineProto/Lua.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/Lua.php b/src/danog/MadelineProto/Lua.php index 5c95da05..168a6fff 100644 --- a/src/danog/MadelineProto/Lua.php +++ b/src/danog/MadelineProto/Lua.php @@ -42,7 +42,7 @@ class Lua $this->Lua->registerCallback('tdcli_function', [$this, 'tdcli_function']); $this->Lua->registerCallback('madeline_function', [$this, 'madeline_function']); foreach (get_class_methods($this->MadelineProto->API) as $method) { - $this->Lua->registerCallback($method, [$this->MadelineProto->API, $method]); + $this->Lua->registerCallback($method, [$this->MadelineProto, $method]); } $methods = []; foreach ($this->MadelineProto->get_methods_namespaced() as $pair) {