Skip to content

Commit d6919c4

Browse files
fix(userbot): remove unused ChatSendPhotosForbidden import
Eliminated the unused `ChatSendPhotosForbidden` import and its references to clean up the code. This improves maintainability and avoids unnecessary dependencies.
1 parent 59de5e8 commit d6919c4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

WinxMusic/core/userbot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from pyrogram import Client, StopPropagation
88
from pyrogram.errors import (
99
ChatSendMediaForbidden,
10-
ChatSendPhotosForbidden,
1110
ChatWriteForbidden,
1211
FloodWait,
1312
MessageIdInvalid,
@@ -102,7 +101,6 @@ async def wrapper(client, message):
102101
except (
103102
ChatWriteForbidden,
104103
ChatSendMediaForbidden,
105-
ChatSendPhotosForbidden,
106104
MessageNotModified,
107105
MessageIdInvalid,
108106
):

0 commit comments

Comments
 (0)