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
f7650364
Unverified
Commit
f7650364
authored
Mar 18, 2018
by
Armando Lüscher
Committed by
GitHub
Mar 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into getupdates_without_db
parents
bee3a3ee
cba0cf23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
CHANGELOG.md
CHANGELOG.md
+1
-0
SendtochannelCommand.php
src/Commands/AdminCommands/SendtochannelCommand.php
+1
-7
No files found.
CHANGELOG.md
View file @
f7650364
...
...
@@ -17,6 +17,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Removed
### Fixed
-
PHPCS fixes for updated CodeSniffer dependency.
-
Send messages correctly via
`/sendtochannel`
.
### Security
## [0.52.0] - 2018-01-07
...
...
src/Commands/AdminCommands/SendtochannelCommand.php
View file @
f7650364
...
...
@@ -290,13 +290,7 @@ class SendtochannelCommand extends AdminCommand
$data
[
'longitude'
]
=
$message
->
getLocation
()
->
getLongitude
();
}
$callback_path
=
'Longman\TelegramBot\Request'
;
$callback_function
=
'send'
.
ucfirst
(
$type
);
if
(
!
method_exists
(
$callback_path
,
$callback_function
))
{
throw
new
TelegramException
(
'Methods: '
.
$callback_function
.
' not found in class Request.'
);
}
return
$callback_path
::
$callback_function
(
$data
);
return
Request
::
send
(
'send'
.
ucfirst
(
$type
),
$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