Return an empty response when an empty inline query is passed.

parent e8400d66
......@@ -25,7 +25,7 @@ class InlinequeryCommand extends SystemCommand
*/
protected $name = 'inlinequery';
protected $description = 'Reply to inline query';
protected $version = '1.0.1';
protected $version = '1.0.2';
/**#@-*/
/**
......@@ -37,6 +37,10 @@ class InlinequeryCommand extends SystemCommand
$inline_query = $update->getInlineQuery();
$query = $inline_query->getQuery();
if ($query === '') {
return Request::emptyResponse();
}
$data['inline_query_id'] = $inline_query->getId();
$articles = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment