Commit 408085f5 authored by MBoretto's avatar MBoretto

using new REQUEST emptyresponse

parent 75468f60
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
namespace Longman\TelegramBot\Commands\SystemCommands; namespace Longman\TelegramBot\Commands\SystemCommands;
use Longman\TelegramBot\Conversation; use Longman\TelegramBot\Conversation;
use Longman\TelegramBot\Request;
use Longman\TelegramBot\Commands\SystemCommand; use Longman\TelegramBot\Commands\SystemCommand;
use Longman\TelegramBot\Entities\ServerResponse;
/** /**
* Generic message command * Generic message command
...@@ -36,7 +36,7 @@ class GenericmessageCommand extends SystemCommand ...@@ -36,7 +36,7 @@ class GenericmessageCommand extends SystemCommand
public function executeNoDB() public function executeNoDB()
{ {
//Do nothing //Do nothing
return new ServerResponse(['ok' => true, 'result' => true], null); return Request::emptyResponse();
} }
/** /**
...@@ -55,6 +55,6 @@ class GenericmessageCommand extends SystemCommand ...@@ -55,6 +55,6 @@ class GenericmessageCommand extends SystemCommand
if (! is_null($command)) { if (! is_null($command)) {
return $this->telegram->executeCommand($command, $this->update); return $this->telegram->executeCommand($command, $this->update);
} }
return new ServerResponse(['ok' => true, 'result' => true], null); return Request::emptyResponse();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment