| 1 | <?php |
||
| 21 | { |
||
| 22 | /**#@+ |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | protected $name = 'hidekeyboard'; |
||
| 26 | protected $description = 'Hide the custom keyboard'; |
||
| 27 | protected $usage = '/hidekeyboard'; |
||
| 28 | protected $version = '0.1.0'; |
||
| 29 | /**#@-*/ |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function execute() |
||
| 35 | { |
||
| 36 | $chat_id = $this->getMessage()->getChat()->getId(); |
||
| 37 | |||
| 38 | $data = [ |
||
| 39 | 'chat_id' => $chat_id, |
||
| 40 | 'text' => 'Keyboard Hidden', |
||
| 41 | 'reply_markup' => Keyboard::hide(), |
||
| 42 | ]; |
||
| 43 | |||
| 44 | return Request::sendMessage($data); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |