Rename set_profile_photo to set_user_profile_photo

This commit is contained in:
Dan 2018-10-16 11:43:54 +02:00
parent 93018a7f6c
commit 8fc5b8a545
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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``):