File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
13
13
### Deprecated
14
14
### Removed
15
15
### Fixed
16
+ - ` Telegram::runCommands() ` now passes the correct message text to the commands.
16
17
### Security
17
18
18
19
## [ 0.70.1] - 2020-12-25
Original file line number Diff line number Diff line change @@ -1036,15 +1036,14 @@ public function runCommands(array $commands): void
1036
1036
]);
1037
1037
};
1038
1038
1039
- // Required for isAdmin() check inside getCommandObject()
1040
- $ this ->update = $ newUpdate ();
1041
-
1042
- // Load up-to-date commands list
1043
- $ this ->commands_objects = $ this ->getCommandsList ();
1044
-
1045
1039
foreach ($ commands as $ command ) {
1046
1040
$ this ->update = $ newUpdate ($ command );
1047
1041
1042
+ // Load up-to-date commands list
1043
+ if (empty ($ this ->commands_objects )) {
1044
+ $ this ->commands_objects = $ this ->getCommandsList ();
1045
+ }
1046
+
1048
1047
$ this ->executeCommand ($ this ->update ->getMessage ()->getCommand ());
1049
1048
}
1050
1049
}
You can’t perform that action at this time.
0 commit comments