Skip to content

Commit b4f77bd

Browse files
committed
Prettify $data array and correct small typo.
Up version.
1 parent b5b7c69 commit b4f77bd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/Commands/HidekeyboardCommand.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class HidekeyboardCommand extends UserCommand
2626
protected $name = 'hidekeyboard';
2727
protected $description = 'Hide the custom keyboard';
2828
protected $usage = '/hidekeyboard';
29-
protected $version = '0.0.5';
29+
protected $version = '0.0.6';
3030
/**#@-*/
3131

3232
/**
@@ -37,10 +37,11 @@ public function execute()
3737
$message = $this->getMessage();
3838
$chat_id = $message->getChat()->getId();
3939

40-
$data = [];
41-
$data['chat_id'] = $chat_id;
42-
$data['text'] = 'Keyboard Hided';
43-
$data['reply_markup'] = new ReplyKeyboardHide([ 'selective' => false]);
40+
$data = [
41+
'chat_id' => $chat_id,
42+
'text' => 'Keyboard Hidden',
43+
'reply_markup' => new ReplyKeyboardHide(['selective' => false]),
44+
];
4445

4546
return Request::sendMessage($data);
4647
}

0 commit comments

Comments
 (0)