Fixes to lua module
This commit is contained in:
parent
65f1add013
commit
eafc2464a9
@ -42,7 +42,7 @@ class Lua
|
|||||||
$this->Lua->registerCallback('tdcli_function', [$this, 'tdcli_function']);
|
$this->Lua->registerCallback('tdcli_function', [$this, 'tdcli_function']);
|
||||||
$this->Lua->registerCallback('madeline_function', [$this, 'madeline_function']);
|
$this->Lua->registerCallback('madeline_function', [$this, 'madeline_function']);
|
||||||
foreach (get_class_methods($this->MadelineProto->API) as $method) {
|
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 = [];
|
$methods = [];
|
||||||
foreach ($this->MadelineProto->get_methods_namespaced() as $pair) {
|
foreach ($this->MadelineProto->get_methods_namespaced() as $pair) {
|
||||||
|
Loading…
Reference in New Issue
Block a user