Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
a3c8c78
1
Parent(s):
dd47bed
Update muting.py
Browse files- Powers/plugins/muting.py +5 -5
Powers/plugins/muting.py
CHANGED
@@ -3,7 +3,7 @@ from traceback import format_exc
|
|
3 |
|
4 |
from pyrogram import enums
|
5 |
from pyrogram.errors import (ChatAdminRequired, RightForbidden, RPCError,
|
6 |
-
UserNotParticipant
|
7 |
from pyrogram.filters import regex
|
8 |
from pyrogram.types import (CallbackQuery, ChatPermissions,
|
9 |
InlineKeyboardButton, InlineKeyboardMarkup,
|
@@ -112,7 +112,7 @@ async def tmute_usr(c: Gojo, m: Message):
|
|
112 |
reply_markup=keyboard,
|
113 |
reply_to_message_id=r_id,
|
114 |
)
|
115 |
-
except
|
116 |
await m.reply_text(txt,reply_markup=keyboard, reply_to_message_id=r_id)
|
117 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
118 |
except ChatAdminRequired:
|
@@ -224,7 +224,7 @@ async def dtmute_usr(c: Gojo, m: Message):
|
|
224 |
caption=txt,
|
225 |
reply_markup=keyboard,
|
226 |
)
|
227 |
-
except
|
228 |
await m.reply_text(txt,reply_markup=keyboard)
|
229 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
230 |
except ChatAdminRequired:
|
@@ -404,7 +404,7 @@ async def mute_usr(c: Gojo, m: Message):
|
|
404 |
reply_markup=keyboard,
|
405 |
reply_to_message_id=r_id,
|
406 |
)
|
407 |
-
except
|
408 |
await m.reply_text(txt,reply_markup=keyboard, reply_to_message_id=r_id)
|
409 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
410 |
except ChatAdminRequired:
|
@@ -562,7 +562,7 @@ async def dmute_usr(c: Gojo, m: Message):
|
|
562 |
caption=txt,
|
563 |
reply_markup=keyboard,
|
564 |
)
|
565 |
-
except
|
566 |
await m.reply_text(txt,reply_markup=keyboard)
|
567 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
568 |
except ChatAdminRequired:
|
|
|
3 |
|
4 |
from pyrogram import enums
|
5 |
from pyrogram.errors import (ChatAdminRequired, RightForbidden, RPCError,
|
6 |
+
UserNotParticipant)
|
7 |
from pyrogram.filters import regex
|
8 |
from pyrogram.types import (CallbackQuery, ChatPermissions,
|
9 |
InlineKeyboardButton, InlineKeyboardMarkup,
|
|
|
112 |
reply_markup=keyboard,
|
113 |
reply_to_message_id=r_id,
|
114 |
)
|
115 |
+
except Exception:
|
116 |
await m.reply_text(txt,reply_markup=keyboard, reply_to_message_id=r_id)
|
117 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
118 |
except ChatAdminRequired:
|
|
|
224 |
caption=txt,
|
225 |
reply_markup=keyboard,
|
226 |
)
|
227 |
+
except Exception:
|
228 |
await m.reply_text(txt,reply_markup=keyboard)
|
229 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
230 |
except ChatAdminRequired:
|
|
|
404 |
reply_markup=keyboard,
|
405 |
reply_to_message_id=r_id,
|
406 |
)
|
407 |
+
except Exception:
|
408 |
await m.reply_text(txt,reply_markup=keyboard, reply_to_message_id=r_id)
|
409 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
410 |
except ChatAdminRequired:
|
|
|
562 |
caption=txt,
|
563 |
reply_markup=keyboard,
|
564 |
)
|
565 |
+
except Exception:
|
566 |
await m.reply_text(txt,reply_markup=keyboard)
|
567 |
await c.send_message(MESSAGE_DUMP,f"#REMOVE from MUTE_GIFS\n{mutt}")
|
568 |
except ChatAdminRequired:
|