Spaces:
Running
Running
Captain Ezio
commited on
Commit
·
09b4b23
1
Parent(s):
818d601
Update info.py
Browse files- Powers/plugins/info.py +3 -3
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 get_user_info(
|
13 |
if not already:
|
14 |
user = await Gojo.get_users(user)
|
15 |
if not user.first_name:
|
@@ -56,7 +56,7 @@ async def get_user_info(user, already=False):
|
|
56 |
return [caption, photo_id]
|
57 |
|
58 |
|
59 |
-
async def get_chat_info(
|
60 |
if not already:
|
61 |
chat = await Gojo.get_chat(chat)
|
62 |
chat_id = chat.id
|
@@ -163,4 +163,4 @@ _DISABLE_CMDS_ = [
|
|
163 |
]
|
164 |
|
165 |
__HELP__ = """/info - to get info about an user
|
166 |
-
/chinfo - to get info about a group or channel"""
|
|
|
9 |
from Powers.utils.custom_filters import command
|
10 |
|
11 |
|
12 |
+
async def get_user_info(user_id, already=False):
|
13 |
if not already:
|
14 |
user = await Gojo.get_users(user)
|
15 |
if not user.first_name:
|
|
|
56 |
return [caption, photo_id]
|
57 |
|
58 |
|
59 |
+
async def get_chat_info(chat_id, already=False):
|
60 |
if not already:
|
61 |
chat = await Gojo.get_chat(chat)
|
62 |
chat_id = chat.id
|
|
|
163 |
]
|
164 |
|
165 |
__HELP__ = """/info - to get info about an user
|
166 |
+
/chinfo - to get info about a group or channel"""
|