Commit e75eec10 authored by Jack'lul's avatar Jack'lul

getMe response as User object

parent 37350bee
...@@ -41,7 +41,7 @@ class ServerResponse extends Entity ...@@ -41,7 +41,7 @@ class ServerResponse extends Entity
$this->result = new File($data['result']); $this->result = new File($data['result']);
} elseif (isset($data['result']['username'])) { } elseif (isset($data['result']['username'])) {
//Response getMe //Response getMe
$this->result = $data['result']; $this->result = new User($data['result']);
} else { } else {
//Response from sendMessage //Response from sendMessage
$this->result = new Message($data['result'], $bot_name); $this->result = new Message($data['result'], $bot_name);
......
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