VKAPI: Add photo_* fields to groups.getById

This commit is contained in:
veselcraft 2022-07-23 03:47:08 +03:00
parent a52809fbb8
commit e55c75b902
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -161,6 +161,21 @@ final class Groups extends VKAPIRequestHandler
case "photo_max":
$response[$i]->photo_max = $clb->getAvatarURL();
break;
case "photo_50":
$response[$i]->photo_50 = $clb->getAvatarURL();
break;
case "photo_100":
$response[$i]->photo_100 = $clb->getAvatarURL("tiny");
break;
case "photo_200":
$response[$i]->photo_200 = $clb->getAvatarURL("normal");
break;
case "photo_200_orig":
$response[$i]->photo_200_orig = $clb->getAvatarURL("normal");
break;
case "photo_400_orig":
$response[$i]->photo_400_orig = $clb->getAvatarURL("normal");
break;
case "members_count":
$response[$i]->members_count = $clb->getFollowersCount();
break;