Skip to content

Commit e75eec1

Browse files
committed
getMe response as User object
1 parent 37350be commit e75eec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entities/ServerResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(array $data, $bot_name)
4141
$this->result = new File($data['result']);
4242
} elseif (isset($data['result']['username'])) {
4343
//Response getMe
44-
$this->result = $data['result'];
44+
$this->result = new User($data['result']);
4545
} else {
4646
//Response from sendMessage
4747
$this->result = new Message($data['result'], $bot_name);

0 commit comments

Comments
 (0)