Commit ea8cf24a authored by Marco Boretto's avatar Marco Boretto

Merge pull request #152 from jacklul/fixgetme

fix getMe() exception
parents 452c3441 e75eec10
......@@ -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 = new User($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