Skip to content

Commit 8fc5b8a

Browse files
committed
Rename set_profile_photo to set_user_profile_photo
1 parent 93018a7 commit 8fc5b8a

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

pyrogram/client/methods/users/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
from .get_me import GetMe
2121
from .get_user_profile_photos import GetUserProfilePhotos
2222
from .get_users import GetUsers
23-
from .set_profile_photo import SetProfilePhoto
23+
from .set_user_profile_photo import SetUserProfilePhoto
2424

2525

2626
class Users(
2727
GetUserProfilePhotos,
28-
SetProfilePhoto,
28+
SetUserProfilePhoto,
2929
DeleteProfilePhotos,
3030
GetUsers,
3131
GetMe

pyrogram/client/methods/users/set_profile_photo.py renamed to pyrogram/client/methods/users/set_user_profile_photo.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
from ...ext import BaseClient
2121

2222

23-
class SetProfilePhoto(BaseClient):
24-
def set_profile_photo(self, photo: str):
25-
"""Use this method to set a new profile photo.
23+
class SetUserProfilePhoto(BaseClient):
24+
def set_user_profile_photo(self, photo: str):
25+
"""Use this method to set a new user profile photo.
2626
27-
This method only works for Users. Bots profile photos must be set using BotFather.
27+
This method only works for Users.
28+
Bots profile photos must be set using BotFather.
2829
2930
Args:
3031
photo (``str``):

0 commit comments

Comments
 (0)