Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
f65dc76
1
Parent(s):
649c0f7
Minor fixes
Browse files- Powers/plugins/info.py +7 -7
Powers/plugins/info.py
CHANGED
|
@@ -125,12 +125,12 @@ async def user_info(c: Gojo, user, already=False):
|
|
| 125 |
async def chat_info(c: Gojo, chat, already=False):
|
| 126 |
if not already:
|
| 127 |
chat = await c.get_chat(chat)
|
| 128 |
-
online_mem = await c.get_chat_online_count(chat)
|
| 129 |
chat_id = chat.id
|
| 130 |
username = chat.username
|
| 131 |
-
total_bot, total_admin, total_bot_admin, total_banned = await count(c, chat)
|
| 132 |
title = chat.title
|
| 133 |
-
type_ = c_type(c, chat_id=chat)
|
| 134 |
is_scam = chat.is_scam
|
| 135 |
is_fake = chat.is_fake
|
| 136 |
description = chat.description
|
|
@@ -206,12 +206,12 @@ async def info_func(c: Gojo, message: Message):
|
|
| 206 |
|
| 207 |
if not photo_id:
|
| 208 |
await m.delete()
|
| 209 |
-
sleep(2)
|
| 210 |
return await message.reply_text(info_caption, disable_web_page_preview=True)
|
| 211 |
photo = await c.download_media(photo_id)
|
| 212 |
|
| 213 |
await m.delete()
|
| 214 |
-
sleep(2)
|
| 215 |
await message.reply_photo(photo, caption=info_caption, quote=False)
|
| 216 |
os.remove(photo)
|
| 217 |
LOGGER.info(
|
|
@@ -246,12 +246,12 @@ async def chat_info_func(c: Gojo, message: Message):
|
|
| 246 |
info_caption, photo_id = await chat_info(c, chat=chat)
|
| 247 |
if not photo_id:
|
| 248 |
await m.delete()
|
| 249 |
-
sleep(2)
|
| 250 |
return await message.reply_text(info_caption, disable_web_page_preview=True)
|
| 251 |
|
| 252 |
photo = await c.download_media(photo_id)
|
| 253 |
await m.delete()
|
| 254 |
-
sleep(2)
|
| 255 |
await message.reply_photo(photo, caption=info_caption, quote=False)
|
| 256 |
LOGGER.info(
|
| 257 |
f"{message.from_user.id} fetched chat info of chat {chat} in {message.chat.id}"
|
|
|
|
| 125 |
async def chat_info(c: Gojo, chat, already=False):
|
| 126 |
if not already:
|
| 127 |
chat = await c.get_chat(chat)
|
| 128 |
+
online_mem = await c.get_chat_online_count(chat.id)
|
| 129 |
chat_id = chat.id
|
| 130 |
username = chat.username
|
| 131 |
+
total_bot, total_admin, total_bot_admin, total_banned = await count(c, chat.id)
|
| 132 |
title = chat.title
|
| 133 |
+
type_ = await c_type(c, chat_id=chat.id)
|
| 134 |
is_scam = chat.is_scam
|
| 135 |
is_fake = chat.is_fake
|
| 136 |
description = chat.description
|
|
|
|
| 206 |
|
| 207 |
if not photo_id:
|
| 208 |
await m.delete()
|
| 209 |
+
await sleep(2)
|
| 210 |
return await message.reply_text(info_caption, disable_web_page_preview=True)
|
| 211 |
photo = await c.download_media(photo_id)
|
| 212 |
|
| 213 |
await m.delete()
|
| 214 |
+
await sleep(2)
|
| 215 |
await message.reply_photo(photo, caption=info_caption, quote=False)
|
| 216 |
os.remove(photo)
|
| 217 |
LOGGER.info(
|
|
|
|
| 246 |
info_caption, photo_id = await chat_info(c, chat=chat)
|
| 247 |
if not photo_id:
|
| 248 |
await m.delete()
|
| 249 |
+
await sleep(2)
|
| 250 |
return await message.reply_text(info_caption, disable_web_page_preview=True)
|
| 251 |
|
| 252 |
photo = await c.download_media(photo_id)
|
| 253 |
await m.delete()
|
| 254 |
+
await sleep(2)
|
| 255 |
await message.reply_photo(photo, caption=info_caption, quote=False)
|
| 256 |
LOGGER.info(
|
| 257 |
f"{message.from_user.id} fetched chat info of chat {chat} in {message.chat.id}"
|