From 1390797f5853bb64a3e8f79ae673f932d1a272f1 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 29 May 2019 09:41:04 +0200 Subject: [PATCH] Rename delete_user_profile_photos to just delete_photos. It's implied an user can only delete own photos. --- .../users/{delete_user_profile_photos.py => delete_photos.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename pyrogram/client/methods/users/{delete_user_profile_photos.py => delete_photos.py} (96%) diff --git a/pyrogram/client/methods/users/delete_user_profile_photos.py b/pyrogram/client/methods/users/delete_photos.py similarity index 96% rename from pyrogram/client/methods/users/delete_user_profile_photos.py rename to pyrogram/client/methods/users/delete_photos.py index 305fd554..30b3b533 100644 --- a/pyrogram/client/methods/users/delete_user_profile_photos.py +++ b/pyrogram/client/methods/users/delete_photos.py @@ -24,8 +24,8 @@ from pyrogram.api import functions, types from ...ext import BaseClient -class DeleteUserProfilePhotos(BaseClient): - def delete_user_profile_photos( +class DeletePhotos(BaseClient): + def delete_photos( self, id: Union[str, List[str]] ) -> bool: