Merge pull request #67 from bunkerskyi/fix/delete-profile-photo
fix(delete_profile_photo): pass Photo object instead of int to DeletePhotosRequest
This commit is contained in:
commit
61924fb2a1
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -2183,7 +2183,7 @@ async def delete_profile_photo() -> str:
|
|||
)
|
||||
if not photos.photos:
|
||||
return "No profile photo to delete."
|
||||
await client(functions.photos.DeletePhotosRequest(id=[photos.photos[0].id]))
|
||||
await client(functions.photos.DeletePhotosRequest(id=[photos.photos[0]]))
|
||||
return "Profile photo deleted."
|
||||
except Exception as e:
|
||||
return log_and_format_error("delete_profile_photo", e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue