From c9f97a9ba36e890a02e4621d2dc00cca81bb64bc Mon Sep 17 00:00:00 2001 From: Ilya Gusev Date: Sun, 10 Jan 2016 23:59:22 +0300 Subject: [PATCH] added checks for inline query checker --- src/Client.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }; }