2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Rename get_user_profile_photos to get_user_photos

This commit is contained in:
Dan 2019-05-29 09:43:33 +02:00
parent 86a4f63d37
commit 09d012b696

View File

@ -23,13 +23,13 @@ from pyrogram.api import functions
from ...ext import BaseClient
class GetUserProfilePhotos(BaseClient):
def get_user_profile_photos(
class GetUserPhotos(BaseClient):
def get_user_photos(
self,
user_id: Union[int, str],
offset: int = 0,
limit: int = 100
) -> "pyrogram.UserProfilePhotos":
) -> "pyrogram.Photos":
"""Get a list of profile pictures for a user.
Parameters:
@ -47,12 +47,12 @@ class GetUserProfilePhotos(BaseClient):
Values between 1100 are accepted. Defaults to 100.
Returns:
:obj:`UserProfilePhotos`: On success, an object containing a list of the profile photos is returned.
:obj:`Photos`: On success, an object containing a list of the profile photos is returned.
Raises:
RPCError: In case of a Telegram RPC error.
"""
return pyrogram.UserProfilePhotos._parse(
return pyrogram.Photos._parse(
self,
self.send(
functions.photos.GetUserPhotos(