Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
f71dc8a3
Unverified
Commit
f71dc8a3
authored
Oct 23, 2018
by
Armando Lüscher
Committed by
GitHub
Oct 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #898 from noplanman/897-fix_sendToActiveChats
Fix sendToActiveChats
parents
9a59c016
88ed0f3e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CHANGELOG.md
CHANGELOG.md
+1
-0
Request.php
src/Request.php
+2
-4
No files found.
CHANGELOG.md
View file @
f71dc8a3
...
...
@@ -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
...
...
src/Request.php
View file @
f71dc8a3
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment