Skip to content

Commit 61924fb

Browse files
authored
Merge pull request #67 from bunkerskyi/fix/delete-profile-photo
fix(delete_profile_photo): pass Photo object instead of int to DeletePhotosRequest
2 parents c13982b + 2e1bfc3 commit 61924fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,7 @@ async def delete_profile_photo() -> str:
21832183
)
21842184
if not photos.photos:
21852185
return "No profile photo to delete."
2186-
await client(functions.photos.DeletePhotosRequest(id=[photos.photos[0].id]))
2186+
await client(functions.photos.DeletePhotosRequest(id=[photos.photos[0]]))
21872187
return "Profile photo deleted."
21882188
except Exception as e:
21892189
return log_and_format_error("delete_profile_photo", e)

0 commit comments

Comments
 (0)