From 6bb3ea9493a59b77b135b6330ba7f996903b2e1e Mon Sep 17 00:00:00 2001 From: MBoretto Date: Sun, 26 Jun 2016 17:57:35 +0200 Subject: [PATCH 1/2] inline query command fixed --- src/Commands/SystemCommands/InlinequeryCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/SystemCommands/InlinequeryCommand.php b/src/Commands/SystemCommands/InlinequeryCommand.php index 7852b49ac..fbd2590e3 100644 --- a/src/Commands/SystemCommands/InlinequeryCommand.php +++ b/src/Commands/SystemCommands/InlinequeryCommand.php @@ -37,7 +37,7 @@ public function execute() $inline_query = $update->getInlineQuery(); $query = $inline_query->getQuery(); - $data = ['inline_query_id' => $inline_query->getId()]; + $data['inline_query_id'] = $inline_query->getId(); $articles = [ ['id' => '001', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query , 'input_message_content' => new InputTextMessageContent([ 'message_text' => ' ' . $query ])], From 8eebde2b4ed1f3942b5367f2fa68b553108a171e Mon Sep 17 00:00:00 2001 From: MBoretto Date: Tue, 28 Jun 2016 23:29:23 +0200 Subject: [PATCH 2/2] onother inline fix --- src/Commands/SystemCommands/InlinequeryCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/SystemCommands/InlinequeryCommand.php b/src/Commands/SystemCommands/InlinequeryCommand.php index fbd2590e3..535c0cb36 100644 --- a/src/Commands/SystemCommands/InlinequeryCommand.php +++ b/src/Commands/SystemCommands/InlinequeryCommand.php @@ -40,9 +40,9 @@ public function execute() $data['inline_query_id'] = $inline_query->getId(); $articles = [ - ['id' => '001', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query , 'input_message_content' => new InputTextMessageContent([ 'message_text' => ' ' . $query ])], - ['id' => '002', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query , 'input_message_content' => new InputTextMessageContent([ 'message_text' => ' ' . $query ])], - ['id' => '003', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query , 'input_message_content' => new InputTextMessageContent([ 'message_text' => ' ' . $query ])], + ['id' => '001', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'description' => 'you enter: ' . $query , 'input_message_content' => new InputTextMessageContent([ 'message_text' => ' ' . $query ])], + ['id' => '002', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'description' => 'you enter: ' . $query , 'input_message_content' => new InputTextMessageContent([ 'message_text' => ' ' . $query ])], + ['id' => '003', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'description' => 'you enter: ' . $query , 'input_message_content' => new InputTextMessageContent([ 'message_text' => ' ' . $query ])], ]; $array_article = [];