2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-05 16:55:20 +00:00

Make delete_profile_photos async

This commit is contained in:
Dan
2018-06-28 20:14:38 +02:00
parent a2b4d59cdb
commit 335a2e06c8

View File

@@ -24,7 +24,7 @@ from ...ext import BaseClient
class DeleteProfilePhotos(BaseClient):
def delete_profile_photos(self, id: str or list):
async def delete_profile_photos(self, id: str or list):
"""Use this method to delete your own profile photos
Args:
@@ -51,7 +51,7 @@ class DeleteProfilePhotos(BaseClient):
)
)
return bool(self.send(
return bool(await self.send(
functions.photos.DeletePhotos(
id=input_photos
)