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:
Eugene Evstafev 2026-02-26 09:18:40 +00:00 committed by GitHub
commit 61924fb2a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)