Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
a1f4a4a
1
Parent(s):
7023596
Update info.py
Browse files- Powers/plugins/info.py +4 -4
Powers/plugins/info.py
CHANGED
@@ -15,7 +15,7 @@ async def get_user_info(user, already=False):
|
|
15 |
user_id = user.id
|
16 |
username = user.username
|
17 |
first_name = user.first_name
|
18 |
-
mention = user.mention("first_name")
|
19 |
dc_id = user.dc_id
|
20 |
photo_id = user.photo.big_file_id if user.photo else None
|
21 |
is_support = user_id in SUPPORT_STAFF
|
@@ -96,7 +96,7 @@ async def info_func(_, message: Message):
|
|
96 |
elif not message.reply_to_message and len(message.command) != 1:
|
97 |
user = message.text.split(None, 1)[1]
|
98 |
|
99 |
-
m = await message.reply_text("
|
100 |
|
101 |
try:
|
102 |
info_caption, photo_id = await get_user_info(user)
|
@@ -121,7 +121,7 @@ async def chat_info_func(_, message: Message):
|
|
121 |
try:
|
122 |
if len(message.command) > 2:
|
123 |
return await message.reply_text(
|
124 |
-
"**Usage:**
|
125 |
)
|
126 |
|
127 |
if len(message.command) == 1:
|
@@ -129,7 +129,7 @@ async def chat_info_func(_, message: Message):
|
|
129 |
elif len(message.command) == 2:
|
130 |
chat = message.text.split(None, 1)[1]
|
131 |
|
132 |
-
m = await message.reply_text("
|
133 |
|
134 |
info_caption, photo_id = await get_chat_info(chat)
|
135 |
if not photo_id:
|
|
|
15 |
user_id = user.id
|
16 |
username = user.username
|
17 |
first_name = user.first_name
|
18 |
+
mention = user.mention(f"{first_name}")
|
19 |
dc_id = user.dc_id
|
20 |
photo_id = user.photo.big_file_id if user.photo else None
|
21 |
is_support = user_id in SUPPORT_STAFF
|
|
|
96 |
elif not message.reply_to_message and len(message.command) != 1:
|
97 |
user = message.text.split(None, 1)[1]
|
98 |
|
99 |
+
m = await message.reply_text(f"Fetching user info of user {user}...")
|
100 |
|
101 |
try:
|
102 |
info_caption, photo_id = await get_user_info(user)
|
|
|
121 |
try:
|
122 |
if len(message.command) > 2:
|
123 |
return await message.reply_text(
|
124 |
+
"**Usage:**chinfo <chat id/username>"
|
125 |
)
|
126 |
|
127 |
if len(message.command) == 1:
|
|
|
129 |
elif len(message.command) == 2:
|
130 |
chat = message.text.split(None, 1)[1]
|
131 |
|
132 |
+
m = await message.reply_text(f"Fetching chat info of chat {chat}.....")
|
133 |
|
134 |
info_caption, photo_id = await get_chat_info(chat)
|
135 |
if not photo_id:
|