Commit c7ec4d19 authored by Armando Lüscher's avatar Armando Lüscher

Use the new emptyResponse() method for returning an empty AdminCommand response.

parent 98b2fa49
......@@ -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