Commit 37350bee authored by Jack'lul's avatar Jack'lul

fix getMe() exception

parent 452c3441
......@@ -39,6 +39,9 @@ class ServerResponse extends Entity
} elseif (isset($data['result']['file_id'])) {
//Response getFile
$this->result = new File($data['result']);
} elseif (isset($data['result']['username'])) {
//Response getMe
$this->result = $data['result'];
} else {
//Response from sendMessage
$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