diff --git a/src/MTProtoTools/PeerDatabase.php b/src/MTProtoTools/PeerDatabase.php index 6b68e9759..f64e46b2f 100644 --- a/src/MTProtoTools/PeerDatabase.php +++ b/src/MTProtoTools/PeerDatabase.php @@ -153,7 +153,11 @@ final class PeerDatabase implements TLCallback public function getFull(int $id): ?array { - return $this->fullDb[$id]; + $result = $this->fullDb[$id]; + if ($result !== null) { + $result['id'] = $id; + } + return $result; } public function expireFull(int $id): void {