Update Akeno/plugins/leaveallmute.py
Browse files
Akeno/plugins/leaveallmute.py
CHANGED
@@ -19,7 +19,6 @@ custom_boost = "<emoji id=5812442283206775108>🗿</emoji>"
|
|
19 |
async def leaveallmute(client: Client, message: Message):
|
20 |
leave = 0
|
21 |
failed = 0
|
22 |
-
u = ""
|
23 |
try:
|
24 |
pro = await message.reply_text("Wait prossing.....")
|
25 |
async for dialog in client.get_dialogs():
|
@@ -31,11 +30,9 @@ async def leaveallmute(client: Client, message: Message):
|
|
31 |
if member.status == ChatMemberStatus.RESTRICTED:
|
32 |
await client.leave_chat(chat_id)
|
33 |
leave += 1
|
34 |
-
u += f"Chat ID: `{chat_id}` | Chat Title: {chat_title}\n"
|
35 |
except (UserNotParticipant, UserAlreadyParticipant):
|
36 |
continue
|
37 |
except Exception as e:
|
38 |
-
u += str(e) + "\n"
|
39 |
failed += 1
|
40 |
if client.me.is_premium:
|
41 |
await pro.edit_text(f"{custom_boost}Successfully leave {leave} from group")
|
|
|
19 |
async def leaveallmute(client: Client, message: Message):
|
20 |
leave = 0
|
21 |
failed = 0
|
|
|
22 |
try:
|
23 |
pro = await message.reply_text("Wait prossing.....")
|
24 |
async for dialog in client.get_dialogs():
|
|
|
30 |
if member.status == ChatMemberStatus.RESTRICTED:
|
31 |
await client.leave_chat(chat_id)
|
32 |
leave += 1
|
|
|
33 |
except (UserNotParticipant, UserAlreadyParticipant):
|
34 |
continue
|
35 |
except Exception as e:
|
|
|
36 |
failed += 1
|
37 |
if client.me.is_premium:
|
38 |
await pro.edit_text(f"{custom_boost}Successfully leave {leave} from group")
|