Rename delete_profile_photos to delete_user_profile_photos

For consistency with other method names
This commit is contained in:
Dan 2018-10-16 11:45:20 +02:00
parent 8fc5b8a545
commit 29201674ef
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from .delete_profile_photos import DeleteProfilePhotos
from .delete_user_profile_photos import DeleteUserProfilePhotos
from .get_me import GetMe
from .get_user_profile_photos import GetUserProfilePhotos
from .get_users import GetUsers
@ -26,7 +26,7 @@ from .set_user_profile_photo import SetUserProfilePhoto
class Users(
GetUserProfilePhotos,
SetUserProfilePhoto,
DeleteProfilePhotos,
DeleteUserProfilePhotos,
GetUsers,
GetMe
):

View File

@ -23,8 +23,8 @@ from pyrogram.api import functions, types
from ...ext import BaseClient
class DeleteProfilePhotos(BaseClient):
def delete_profile_photos(self, id: str or list):
class DeleteUserProfilePhotos(BaseClient):
def delete_user_profile_photos(self, id: str or list):
"""Use this method to delete your own profile photos
Args: