diff --git a/src/MadelineProtoExtensions/ApiExtensions.php b/src/MadelineProtoExtensions/ApiExtensions.php index 6983229..03538bf 100644 --- a/src/MadelineProtoExtensions/ApiExtensions.php +++ b/src/MadelineProtoExtensions/ApiExtensions.php @@ -452,7 +452,7 @@ public function getMessages(array $data): Promise return call( function() use ($data) { $peerInfo = yield $this->madelineProto->getInfo($data['peer']); - if ($peerInfo['type'] === 'channel') { + if (in_array($peerInfo['type'], ['channel', 'supergroup'])) { $response = yield $this->madelineProto->channels->getMessages( [ 'channel' => $data['peer'],