Commit b4f77bd4 authored by Armando Lüscher's avatar Armando Lüscher

Prettify $data array and correct small typo.

Up version.
parent b5b7c694
...@@ -26,7 +26,7 @@ class HidekeyboardCommand extends UserCommand ...@@ -26,7 +26,7 @@ class HidekeyboardCommand extends UserCommand
protected $name = 'hidekeyboard'; protected $name = 'hidekeyboard';
protected $description = 'Hide the custom keyboard'; protected $description = 'Hide the custom keyboard';
protected $usage = '/hidekeyboard'; protected $usage = '/hidekeyboard';
protected $version = '0.0.5'; protected $version = '0.0.6';
/**#@-*/ /**#@-*/
/** /**
...@@ -37,10 +37,11 @@ class HidekeyboardCommand extends UserCommand ...@@ -37,10 +37,11 @@ class HidekeyboardCommand extends UserCommand
$message = $this->getMessage(); $message = $this->getMessage();
$chat_id = $message->getChat()->getId(); $chat_id = $message->getChat()->getId();
$data = []; $data = [
$data['chat_id'] = $chat_id; 'chat_id' => $chat_id,
$data['text'] = 'Keyboard Hided'; 'text' => 'Keyboard Hidden',
$data['reply_markup'] = new ReplyKeyboardHide([ 'selective' => false]); 'reply_markup' => new ReplyKeyboardHide(['selective' => false]),
];
return Request::sendMessage($data); return Request::sendMessage($data);
} }
......
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