Skip to content

Commit

Permalink
mediaWebPage support update
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Apr 7, 2020
1 parent 3ea14f3 commit 4bb3c63
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 @@ -104,7 +104,7 @@ private static function hasMedia(array $message = [], bool $allowWebPage = false
if ($mediaType === null) {
return false;
}
if ($mediaType === 'messageMediaWebPage') {
if ($mediaType === 'messageMediaWebPage' && !empty($message['media']['webpage']['photo'])) {
return $allowWebPage;
}

Expand Down

0 comments on commit 4bb3c63

Please sign in to comment.