Skip to content

Commit

Permalink
getMessages supergroup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Jul 22, 2020
1 parent 4abb47a commit 53e5a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MadelineProtoExtensions/ApiExtensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 53e5a43

Please sign in to comment.