Longman\TelegramBot\Commands\UserCommands\HidekeyboardCommand::execute PHP Method

execute() public method

public execute ( )
    public function execute()
    {
        $chat_id = $this->getMessage()->getChat()->getId();
        $data = ['chat_id' => $chat_id, 'text' => 'Keyboard Hidden', 'reply_markup' => Keyboard::hide()];
        return Request::sendMessage($data);
    }
HidekeyboardCommand