diff --git a/src/TgBotLib/Methods/GetUserProfilePhotos.php b/src/TgBotLib/Methods/GetUserProfilePhotos.php index 2b3d606..d1fa4e1 100644 --- a/src/TgBotLib/Methods/GetUserProfilePhotos.php +++ b/src/TgBotLib/Methods/GetUserProfilePhotos.php @@ -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)); } /**