Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
a7e8a54
1
Parent(s):
769060e
Update info.py
Browse files- Powers/plugins/info.py +3 -3
Powers/plugins/info.py
CHANGED
@@ -160,11 +160,11 @@ async def info_func(c: Gojo, message: Message):
|
|
160 |
if not user:
|
161 |
message.reply_text("Can't find user to fetch info!")
|
162 |
|
163 |
-
m = await message.reply_text(f"Fetching user info of user {
|
164 |
|
165 |
try:
|
166 |
info_caption, photo_id = await user_info(c , user=user)
|
167 |
-
LOGGER.info(f"{message.from_user.id} tried to fetch user info of user {
|
168 |
except Exception as e:
|
169 |
LOGGER.error(e)
|
170 |
LOGGER.error(format_exc())
|
@@ -205,7 +205,7 @@ async def chat_info_func(c: Gojo, message: Message):
|
|
205 |
|
206 |
photo = await Gojo.download_media(photo_id)
|
207 |
await message.reply_photo(photo, caption=info_caption, quote=False)
|
208 |
-
LOGGER.info(f"{message.from_user.id} fetched chat info of chat {chat
|
209 |
|
210 |
await m.delete()
|
211 |
os.remove(photo)
|
|
|
160 |
if not user:
|
161 |
message.reply_text("Can't find user to fetch info!")
|
162 |
|
163 |
+
m = await message.reply_text(f"Fetching user info of user {message.from_user.id}...")
|
164 |
|
165 |
try:
|
166 |
info_caption, photo_id = await user_info(c , user=user)
|
167 |
+
LOGGER.info(f"{message.from_user.id} tried to fetch user info of user {message.from_user.id} in {message.chat.id}")
|
168 |
except Exception as e:
|
169 |
LOGGER.error(e)
|
170 |
LOGGER.error(format_exc())
|
|
|
205 |
|
206 |
photo = await Gojo.download_media(photo_id)
|
207 |
await message.reply_photo(photo, caption=info_caption, quote=False)
|
208 |
+
LOGGER.info(f"{message.from_user.id} fetched chat info of chat {chat} in {message.chat.id}")
|
209 |
|
210 |
await m.delete()
|
211 |
os.remove(photo)
|