diff --git a/src/BotAPI.php b/src/BotAPI.php index 43011b5..9c6f4d1 100644 --- a/src/BotAPI.php +++ b/src/BotAPI.php @@ -40,8 +40,7 @@ public function __call($name, $args) $argsAPI[$field['name']] = $args[$i]; $i++; } - $this->BotAPI($name, $argsAPI); - return $argsAPI; + return $this->BotAPI($name, $argsAPI); } else { throw new \neneone\neneone\Exception('Method not found'); }