From e55c75b9021837f7d035ee18da62f423e6ba32d6 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sat, 23 Jul 2022 03:47:08 +0300 Subject: [PATCH] VKAPI: Add photo_* fields to groups.getById --- VKAPI/Handlers/Groups.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/VKAPI/Handlers/Groups.php b/VKAPI/Handlers/Groups.php index 108834b1..de9ae573 100644 --- a/VKAPI/Handlers/Groups.php +++ b/VKAPI/Handlers/Groups.php @@ -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;