Remove unnecessary BC code for Message entity.

parent fa6b08ae
...@@ -6,6 +6,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ...@@ -6,6 +6,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
## [Unreleased] ## [Unreleased]
### Added ### Added
- Documents can be sent by providing its contents via Psr7 stream (as opposed to passing a file path). - 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 ### Changed
### Deprecated ### Deprecated
### Removed ### Removed
......
...@@ -79,8 +79,6 @@ class Message extends Entity ...@@ -79,8 +79,6 @@ class Message extends Entity
/** /**
* Message constructor * Message constructor
* *
* @todo: BC stuff should be removed at some point.
*
* @param array $data * @param array $data
* @param string $bot_username * @param string $bot_username
* *
...@@ -88,20 +86,6 @@ class Message extends Entity ...@@ -88,20 +86,6 @@ class Message extends Entity
*/ */
public function __construct(array $data, $bot_username = '') 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); parent::__construct($data, $bot_username);
} }
......
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