mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Rename get_user_profile_photos to get_user_photos
This commit is contained in:
parent
86a4f63d37
commit
09d012b696
@ -23,13 +23,13 @@ from pyrogram.api import functions
|
|||||||
from ...ext import BaseClient
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
class GetUserProfilePhotos(BaseClient):
|
class GetUserPhotos(BaseClient):
|
||||||
def get_user_profile_photos(
|
def get_user_photos(
|
||||||
self,
|
self,
|
||||||
user_id: Union[int, str],
|
user_id: Union[int, str],
|
||||||
offset: int = 0,
|
offset: int = 0,
|
||||||
limit: int = 100
|
limit: int = 100
|
||||||
) -> "pyrogram.UserProfilePhotos":
|
) -> "pyrogram.Photos":
|
||||||
"""Get a list of profile pictures for a user.
|
"""Get a list of profile pictures for a user.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
@ -47,12 +47,12 @@ class GetUserProfilePhotos(BaseClient):
|
|||||||
Values between 1—100 are accepted. Defaults to 100.
|
Values between 1—100 are accepted. Defaults to 100.
|
||||||
|
|
||||||
Returns:
|
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:
|
Raises:
|
||||||
RPCError: In case of a Telegram RPC error.
|
RPCError: In case of a Telegram RPC error.
|
||||||
"""
|
"""
|
||||||
return pyrogram.UserProfilePhotos._parse(
|
return pyrogram.Photos._parse(
|
||||||
self,
|
self,
|
||||||
self.send(
|
self.send(
|
||||||
functions.photos.GetUserPhotos(
|
functions.photos.GetUserPhotos(
|
Loading…
x
Reference in New Issue
Block a user