File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 11
11
namespace Longman \TelegramBot \Commands \UserCommands ;
12
12
13
13
use Longman \TelegramBot \Commands \UserCommand ;
14
- use Longman \TelegramBot \Request ;
14
+ use Longman \TelegramBot \Entities \ ReplyKeyboardHide ;
15
15
use Longman \TelegramBot \Entities \ReplyKeyboardMarkup ;
16
+ use Longman \TelegramBot \Request ;
16
17
17
18
/**
18
19
* User "/hidekeyboard" command
@@ -25,7 +26,7 @@ class HidekeyboardCommand extends UserCommand
25
26
protected $ name = 'hidekeyboard ' ;
26
27
protected $ description = 'Hide the custom keyboard ' ;
27
28
protected $ usage = '/hidekeyboard ' ;
28
- protected $ version = '0.0.5 ' ;
29
+ protected $ version = '0.0.6 ' ;
29
30
/**#@-*/
30
31
31
32
/**
@@ -36,10 +37,11 @@ public function execute()
36
37
$ message = $ this ->getMessage ();
37
38
$ chat_id = $ message ->getChat ()->getId ();
38
39
39
- $ data = [];
40
- $ data ['chat_id ' ] = $ chat_id ;
41
- $ data ['text ' ] = 'Keyboard Hided ' ;
42
- $ 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
+ ];
43
45
44
46
return Request::sendMessage ($ data );
45
47
}
You can’t perform that action at this time.
0 commit comments