File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
12
12
### Deprecated
13
13
### Removed
14
14
### Fixed
15
+ - Non-existing commands now correctly execute ` GenericCommand ` again.
15
16
### Security
16
17
17
18
## [ 0.59.1] - 2019-07-18
Original file line number Diff line number Diff line change @@ -468,7 +468,9 @@ public function processUpdate(Update $update)
468
468
469
469
// Empty usage string denotes a non-executable command.
470
470
// @see https://github.com/php-telegram-bot/core/issues/772#issuecomment-388616072
471
- if ($ command_obj !== null && $ command_obj ->getUsage () !== '' ) {
471
+ if (($ command_obj === null && $ type === 'command ' )
472
+ || ($ command_obj !== null && $ command_obj ->getUsage () !== '' )
473
+ ) {
472
474
$ command = $ command_tmp ;
473
475
}
474
476
} else {
You can’t perform that action at this time.
0 commit comments