mediaWebPage support update

This commit is contained in:
Alexander Pankratov 2020-04-08 01:52:47 +03:00
parent 3ea14f3566
commit 4bb3c63edb

View File

@ -104,7 +104,7 @@ class ApiExtensions
if ($mediaType === null) {
return false;
}
if ($mediaType === 'messageMediaWebPage') {
if ($mediaType === 'messageMediaWebPage' && !empty($message['media']['webpage']['photo'])) {
return $allowWebPage;
}