Commit 9889ef19 authored by Jack'lul's avatar Jack'lul

fix

parent 3dd1b671
......@@ -19,9 +19,9 @@ class ChatMember extends Entity
{
$this->user = isset($data['user']) ? $data['user'] : null;
if (empty($this->user)) {
throw new TelegramException('type is empty!');
throw new TelegramException('user is empty!');
}
$this->from = new User($this->user);
$this->user = new User($data['user']);
$this->status = isset($data['status']) ? $data['status'] : null;
if ($this->status === '') {
......
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