File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Commands/UserCommands Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
11
11
### Deprecated
12
12
### Removed
13
13
### Fixed
14
+ - Execution of ` /start ` command without any custom implementation.
14
15
### Security
15
16
16
17
## [ 0.61.1] - 2019-11-23
Original file line number Diff line number Diff line change 13
13
14
14
use Longman \TelegramBot \Commands \UserCommand ;
15
15
use Longman \TelegramBot \Entities \ServerResponse ;
16
- use Longman \TelegramBot \Exception \ TelegramException ;
16
+ use Longman \TelegramBot \Request ;
17
17
18
18
/**
19
19
* Start command
@@ -38,20 +38,19 @@ class StartCommand extends UserCommand
38
38
/**
39
39
* @var string
40
40
*/
41
- protected $ version = '1.1 .0 ' ;
41
+ protected $ version = '1.2 .0 ' ;
42
42
43
43
/**
44
44
* Command execute method
45
45
*
46
46
* @return ServerResponse
47
- * @throws TelegramException
48
47
*/
49
48
public function execute ()
50
49
{
51
50
//$message = $this->getMessage();
52
51
//$chat_id = $message->getChat()->getId();
53
52
//$user_id = $message->getFrom()->getId();
54
53
55
- return parent :: execute ();
54
+ return Request:: emptyResponse ();
56
55
}
57
56
}
You can’t perform that action at this time.
0 commit comments