From d9dd03f601557fd4a1802c1c477caa39166fcb73 Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 5 Nov 2024 19:22:13 -0500 Subject: [PATCH] Refactor user profile photos request handling. --- src/TgBotLib/Methods/GetUserProfilePhotos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /**