Skip to content

Commit f11e45e

Browse files
committed
Merge pull request #3 from noplanman/empty_response
Use the new emptyResponse() method
2 parents 98b2fa4 + c7ec4d1 commit f11e45e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Commands/SystemCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Longman\TelegramBot\Commands;
1212

13-
use Longman\TelegramBot\Entities\ServerResponse;
13+
use Longman\TelegramBot\Request;
1414

1515
/**
1616
* Abstract System Command Class
@@ -27,7 +27,7 @@ abstract class SystemCommand extends Command
2727
*/
2828
public function execute()
2929
{
30-
//System command, return successful ServerResponse
31-
return new ServerResponse(['ok' => true, 'result' => true], null);
30+
//System command, return empty ServerResponse
31+
return Request::emptyResponse();
3232
}
3333
}

0 commit comments

Comments
 (0)