From 8fc5b8a545df80cf1097f676282e51bbee4d15ee Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 16 Oct 2018 11:43:54 +0200 Subject: [PATCH] Rename set_profile_photo to set_user_profile_photo --- pyrogram/client/methods/users/__init__.py | 4 ++-- .../{set_profile_photo.py => set_user_profile_photo.py} | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) rename pyrogram/client/methods/users/{set_profile_photo.py => set_user_profile_photo.py} (84%) 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``):