Spaces:
Running
Running
Captain Ezio
commited on
Commit
·
5b650ec
1
Parent(s):
aacfc28
Update info.py
Browse files- Powers/plugins/info.py +2 -2
Powers/plugins/info.py
CHANGED
@@ -9,7 +9,7 @@ from Powers.bot_class import Gojo
|
|
9 |
from Powers.utils.custom_filters import command
|
10 |
|
11 |
|
12 |
-
async def
|
13 |
if not already:
|
14 |
user = await Gojo.get_users(user)
|
15 |
if not user.first_name:
|
@@ -101,7 +101,7 @@ async def info_func(_, message: Message):
|
|
101 |
m = await message.reply_text(f"Fetching user info of user {user}...")
|
102 |
|
103 |
try:
|
104 |
-
info_caption, photo_id = await
|
105 |
LOGGER.info(f"{message.from_user.id} tried to fetch user info of user {user} in {m.chat.id}")
|
106 |
except Exception as e:
|
107 |
LOGGER.error(e)
|
|
|
9 |
from Powers.utils.custom_filters import command
|
10 |
|
11 |
|
12 |
+
async def user_info(user, already=False):
|
13 |
if not already:
|
14 |
user = await Gojo.get_users(user)
|
15 |
if not user.first_name:
|
|
|
101 |
m = await message.reply_text(f"Fetching user info of user {user}...")
|
102 |
|
103 |
try:
|
104 |
+
info_caption, photo_id = await user_info(user)
|
105 |
LOGGER.info(f"{message.from_user.id} tried to fetch user info of user {user} in {m.chat.id}")
|
106 |
except Exception as e:
|
107 |
LOGGER.error(e)
|