Longman\TelegramBot\Commands\Command::executeNoDb PHP Method

executeNoDb() public method

Execution if MySQL is required but not available
public executeNoDb ( ) : ServerResponse
return Longman\TelegramBot\Entities\ServerResponse
    public function executeNoDb()
    {
        //Preparing message
        $message = $this->getMessage();
        $chat_id = $message->getChat()->getId();
        $data = ['chat_id' => $chat_id, 'text' => 'Sorry no database connection, unable to execute "' . $this->name . '" command.'];
        return Request::sendMessage($data);
    }