diff --git a/pyrogram/client/methods/chats/set_chat_photo.py b/pyrogram/client/methods/chats/set_chat_photo.py
index 71cd6590..c97f7a3c 100644
--- a/pyrogram/client/methods/chats/set_chat_photo.py
+++ b/pyrogram/client/methods/chats/set_chat_photo.py
@@ -17,7 +17,6 @@
# along with Pyrogram. If not, see .
import os
-from struct import unpack
from typing import Union
from pyrogram.api import functions, types
@@ -62,15 +61,8 @@ class SetChatPhoto(BaseClient):
if os.path.exists(photo):
photo = types.InputChatUploadedPhoto(file=self.save_file(photo))
else:
- unpacked = unpack("