Skip to content

Commit 607216b

Browse files
committed
Fix invalid abstract method call in start command.
1 parent d9052b0 commit 607216b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
1111
### Deprecated
1212
### Removed
1313
### Fixed
14+
- Execution of `/start` command without any custom implementation.
1415
### Security
1516

1617
## [0.61.1] - 2019-11-23

src/Commands/UserCommands/StartCommand.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Longman\TelegramBot\Commands\UserCommand;
1515
use Longman\TelegramBot\Entities\ServerResponse;
16-
use Longman\TelegramBot\Exception\TelegramException;
16+
use Longman\TelegramBot\Request;
1717

1818
/**
1919
* Start command
@@ -38,20 +38,19 @@ class StartCommand extends UserCommand
3838
/**
3939
* @var string
4040
*/
41-
protected $version = '1.1.0';
41+
protected $version = '1.2.0';
4242

4343
/**
4444
* Command execute method
4545
*
4646
* @return ServerResponse
47-
* @throws TelegramException
4847
*/
4948
public function execute()
5049
{
5150
//$message = $this->getMessage();
5251
//$chat_id = $message->getChat()->getId();
5352
//$user_id = $message->getFrom()->getId();
5453

55-
return parent::execute();
54+
return Request::emptyResponse();
5655
}
5756
}

0 commit comments

Comments
 (0)