From 24823584848c0b3429bdd72ac1980ee772940a58 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 29 Sep 2019 12:53:26 +0200 Subject: [PATCH] Fix delete_profile_photos --- .../methods/users/delete_profile_photos.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pyrogram/client/methods/users/delete_profile_photos.py b/pyrogram/client/methods/users/delete_profile_photos.py index e6b2fe5b..1d5d6a11 100644 --- a/pyrogram/client/methods/users/delete_profile_photos.py +++ b/pyrogram/client/methods/users/delete_profile_photos.py @@ -16,10 +16,9 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see . -from struct import unpack from typing import List, Union -from pyrogram.api import functions, types +from pyrogram.api import functions from pyrogram.client.ext import utils from ...ext import BaseClient @@ -52,18 +51,7 @@ class DeleteProfilePhotos(BaseClient): app.delete_profile_photos([p.file_id for p in photos[1:]]) """ photo_ids = photo_ids if isinstance(photo_ids, list) else [photo_ids] - input_photos = [] - - for photo_id in photo_ids: - unpacked = unpack("