diff --git a/src/Client.php b/src/Client.php index 1a17cea2..1fdd6192 100644 --- a/src/Client.php +++ b/src/Client.php @@ -144,9 +144,12 @@ protected static function getEvent(Closure $action) protected static function getInlineQueryEvent(Closure $action) { return function (Update $update) use ($action) { + if (!$update->getInlineQuery()) { + return true; + } + $reflectionAction = new ReflectionFunction($action); $reflectionAction->invokeArgs([$update->getInlineQuery()]); - return false; }; }