Commit f11e45e3 authored by Marco Boretto's avatar Marco Boretto

Merge pull request #3 from noplanman/empty_response

Use the new emptyResponse() method
parents 98b2fa49 c7ec4d19
......@@ -10,7 +10,7 @@
namespace Longman\TelegramBot\Commands;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Request;
/**
* Abstract System Command Class
......@@ -27,7 +27,7 @@ abstract class SystemCommand extends Command
*/
public function execute()
{
//System command, return successful ServerResponse
return new ServerResponse(['ok' => true, 'result' => true], null);
//System command, return empty ServerResponse
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