Spaces:
Sleeping
Sleeping
iamgojoof6eyes
commited on
Commit
·
1d0457e
1
Parent(s):
a155e0a
Looks good
Browse files- Powers/plugins/admin.py +1 -1
- Powers/plugins/bans.py +1 -1
- Powers/plugins/start.py +9 -1
Powers/plugins/admin.py
CHANGED
@@ -103,7 +103,7 @@ async def zombie_clean(c: Gojo, m: Message):
|
|
103 |
zombie = 0
|
104 |
|
105 |
wait = await m.reply_text("Searching ... and banning ...")
|
106 |
-
async for member in c.
|
107 |
if member.user.is_deleted:
|
108 |
zombie += 1
|
109 |
try:
|
|
|
103 |
zombie = 0
|
104 |
|
105 |
wait = await m.reply_text("Searching ... and banning ...")
|
106 |
+
async for member in c.get_chat_members(m.chat.id):
|
107 |
if member.user.is_deleted:
|
108 |
zombie += 1
|
109 |
try:
|
Powers/plugins/bans.py
CHANGED
@@ -711,7 +711,7 @@ async def dban_usr(c: Gojo, m: Message):
|
|
711 |
],
|
712 |
],
|
713 |
)
|
714 |
-
await c.
|
715 |
except ChatAdminRequired:
|
716 |
await m.reply_text(text="I'm not admin or I don't have rights.")
|
717 |
except PeerIdInvalid:
|
|
|
711 |
],
|
712 |
],
|
713 |
)
|
714 |
+
await c.send_animation(m.chat.id, animation = BAN_MEDIA,caption=txt, reply_markup=keyboard)
|
715 |
except ChatAdminRequired:
|
716 |
await m.reply_text(text="I'm not admin or I don't have rights.")
|
717 |
except PeerIdInvalid:
|
Powers/plugins/start.py
CHANGED
@@ -120,8 +120,16 @@ async def start(c: Gojo, m: Message):
|
|
120 |
except UserIsBlocked:
|
121 |
LOGGER.warning(f"Bot blocked by {m.from_user.id}")
|
122 |
else:
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
text="I'm alive :3",
|
|
|
125 |
quote=True,
|
126 |
)
|
127 |
return
|
|
|
120 |
except UserIsBlocked:
|
121 |
LOGGER.warning(f"Bot blocked by {m.from_user.id}")
|
122 |
else:
|
123 |
+
kb = ikb([
|
124 |
+
[("Connect me to pm",
|
125 |
+
f"https://t.me/{Config.BOT_USERNAME}?start={Config.BOT_TOKEN}",
|
126 |
+
"url",
|
127 |
+
)]
|
128 |
+
])
|
129 |
+
await m.reply_photo(
|
130 |
+
photo=choice(StartPic),
|
131 |
text="I'm alive :3",
|
132 |
+
reply_markup=kb,
|
133 |
quote=True,
|
134 |
)
|
135 |
return
|