Unverified Commit f71dc8a3 authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #898 from noplanman/897-fix_sendToActiveChats

Fix sendToActiveChats
parents 9a59c016 88ed0f3e
......@@ -9,6 +9,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Deprecated
### Removed
### Fixed
- `sendToActiveChats` now works correctly for any valid Request action.
### Security
## [0.54.0] - 2018-07-21
......
......@@ -603,9 +603,7 @@ class Request
array $data,
array $select_chats_params
) {
if (!method_exists(Request::class, $callback_function)) {
throw new TelegramException('Method "' . $callback_function . '" not found in class Request.');
}
self::ensureValidAction($callback_function);
$chats = DB::selectChats($select_chats_params);
......@@ -613,7 +611,7 @@ class Request
if (is_array($chats)) {
foreach ($chats as $row) {
$data['chat_id'] = $row['chat_id'];
$results[] = call_user_func(Request::class . '::' . $callback_function, $data);
$results[] = self::send($callback_function, $data);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment