From 76264ce65f20cc0c28d4e1fb8b8b84cdd2e7f8a7 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 3 Dec 2021 20:26:45 +0100 Subject: [PATCH] Layer fix --- src/danog/MadelineProto/MTProtoTools/PeerHandler.php | 2 +- src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index aaeb83d7f..e828071d4 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -386,7 +386,7 @@ trait PeerHandler case 'user': return $id['id']; case 'userFull': - return $id['user']['id']; + return $id['id']; case 'inputPeerUser': case 'inputUser': case 'peerUser': diff --git a/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php b/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php index f5935320a..6eea494fb 100644 --- a/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php +++ b/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php @@ -250,7 +250,7 @@ class ReferenceDatabase implements TLCallback $origin['max_id'] = $data['profile_photo']['id']; $origin['offset'] = -1; $origin['limit'] = 1; - $origin['user_id'] = $data['user']['id']; + $origin['user_id'] = $data['id']; break; case 'chatFull': case 'chat':