Refactor user profile photos request handling.

This commit is contained in:
netkas 2024-11-05 19:22:13 -05:00
parent 3cac471f1e
commit d9dd03f601

View file

@ -14,7 +14,7 @@
*/
public static function execute(Bot $bot, array $parameters = []): UserProfilePhotos
{
return $bot->sendRequest(Methods::GET_USER_PROFILE_PHOTOS->value, $parameters);
return UserProfilePhotos::fromArray($bot->sendRequest(Methods::GET_USER_PROFILE_PHOTOS->value, $parameters));
}
/**