Refactor user profile photos request handling.
This commit is contained in:
parent
3cac471f1e
commit
d9dd03f601
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue