diff --git a/pyrogram/client/methods/users/__init__.py b/pyrogram/client/methods/users/__init__.py index 9813b744..ed6f1a83 100644 --- a/pyrogram/client/methods/users/__init__.py +++ b/pyrogram/client/methods/users/__init__.py @@ -20,12 +20,12 @@ from .delete_profile_photos import DeleteProfilePhotos from .get_me import GetMe from .get_user_profile_photos import GetUserProfilePhotos from .get_users import GetUsers -from .set_profile_photo import SetProfilePhoto +from .set_user_profile_photo import SetUserProfilePhoto class Users( GetUserProfilePhotos, - SetProfilePhoto, + SetUserProfilePhoto, DeleteProfilePhotos, GetUsers, GetMe diff --git a/pyrogram/client/methods/users/set_profile_photo.py b/pyrogram/client/methods/users/set_user_profile_photo.py similarity index 84% rename from pyrogram/client/methods/users/set_profile_photo.py rename to pyrogram/client/methods/users/set_user_profile_photo.py index 8ed9dc7b..5167348f 100644 --- a/pyrogram/client/methods/users/set_profile_photo.py +++ b/pyrogram/client/methods/users/set_user_profile_photo.py @@ -20,11 +20,12 @@ from pyrogram.api import functions from ...ext import BaseClient -class SetProfilePhoto(BaseClient): - def set_profile_photo(self, photo: str): - """Use this method to set a new profile photo. +class SetUserProfilePhoto(BaseClient): + def set_user_profile_photo(self, photo: str): + """Use this method to set a new user profile photo. - This method only works for Users. Bots profile photos must be set using BotFather. + This method only works for Users. + Bots profile photos must be set using BotFather. Args: photo (``str``):