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