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:
@@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user