From c2add62c4c226981befc5d47360b82f267117385 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 15 Aug 2017 23:44:33 +0200 Subject: [PATCH] Your fix is coming soon aaron <3 --- src/danog/MadelineProto/Lua.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/Lua.php b/src/danog/MadelineProto/Lua.php index 06c15a27..2c127bf0 100644 --- a/src/danog/MadelineProto/Lua.php +++ b/src/danog/MadelineProto/Lua.php @@ -157,8 +157,8 @@ class Lua array_walk_recursive($data, function (&$value, $key) { if (is_object($value)) { $newval = []; - if (method_exists($value, 'click')) { - $newval['click'] = [$value, 'click']; + foreach (get_class_methods($value) as $name) { + $newval[$name] = [$value, $name]; } foreach ($value as $key => $name) { $newval[$key] = $name;