2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-01 23:05:15 +00:00

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

View File

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