Skip to content

Commit 30c6ef6

Browse files
authored
Merge pull request #35 from jcomas/patch-1
Update InlinequeryCommand.php
2 parents 2b81dd4 + f74ada3 commit 30c6ef6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Commands/InlinequeryCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class InlinequeryCommand extends SystemCommand
3535
/**
3636
* @var string
3737
*/
38-
protected $version = '1.1.1';
38+
protected $version = '1.1.2';
3939

4040
/**
4141
* Command execute method
@@ -78,8 +78,6 @@ public function execute()
7878
}
7979
}
8080

81-
$data['results'] = '[' . implode(',', $results) . ']';
82-
83-
return Request::answerInlineQuery($data);
81+
return $this->getInlineQuery()->answer($results, $data);
8482
}
8583
}

0 commit comments

Comments
 (0)