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
042eeb6e
Unverified
Commit
042eeb6e
authored
Jun 11, 2017
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary BC code for Message entity.
parent
fa6b08ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
16 deletions
+1
-16
CHANGELOG.md
CHANGELOG.md
+1
-0
Message.php
src/Entities/Message.php
+0
-16
No files found.
CHANGELOG.md
View file @
042eeb6e
...
...
@@ -6,6 +6,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
## [Unreleased]
### Added
-
Documents can be sent by providing its contents via Psr7 stream (as opposed to passing a file path).
-
First implementations towards Bots API 3.0.
### Changed
### Deprecated
### Removed
...
...
src/Entities/Message.php
View file @
042eeb6e
...
...
@@ -79,8 +79,6 @@ class Message extends Entity
/**
* Message constructor
*
* @todo: BC stuff should be removed at some point.
*
* @param array $data
* @param string $bot_username
*
...
...
@@ -88,20 +86,6 @@ class Message extends Entity
*/
public
function
__construct
(
array
$data
,
$bot_username
=
''
)
{
// Backwards-compatibility
if
(
isset
(
$data
[
'new_chat_participant'
]))
{
$data
[
'new_chat_members'
]
=
$data
[
'new_chat_participant'
];
unset
(
$data
[
'new_chat_participant'
]);
}
if
(
isset
(
$data
[
'new_chat_member'
]))
{
$data
[
'new_chat_members'
]
=
$data
[
'new_chat_member'
];
unset
(
$data
[
'new_chat_member'
]);
}
if
(
isset
(
$data
[
'left_chat_participant'
]))
{
$data
[
'left_chat_member'
]
=
$data
[
'left_chat_participant'
];
unset
(
$data
[
'left_chat_participant'
]);
}
parent
::
__construct
(
$data
,
$bot_username
);
}
...
...
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