Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
Β·
9fb279b
1
Parent(s):
eb73660
Update info.py
Browse files- Powers/plugins/info.py +14 -26
Powers/plugins/info.py
CHANGED
|
@@ -82,6 +82,8 @@ async def user_info(c: Gojo, user, already=False):
|
|
| 82 |
is_restricted = user.is_restricted
|
| 83 |
photo_id = user.photo.big_file_id if user.photo else None
|
| 84 |
is_support = True if user_id in SUPPORT_STAFF else False
|
|
|
|
|
|
|
| 85 |
if is_support or Config.BOT_ID:
|
| 86 |
if user_id in DEV_USERS:
|
| 87 |
omp = "User is dev"
|
|
@@ -122,18 +124,18 @@ async def user_info(c: Gojo, user, already=False):
|
|
| 122 |
|
| 123 |
<b>π User ID</b>: <code>{user_id}</code>
|
| 124 |
<b>π Link To Profile</b>: <a href='tg://user?id={user_id}'>Click Hereπͺ</a>
|
| 125 |
-
<b
|
| 126 |
<b>π£ First Name</b>: <code>{first_name}</code>
|
| 127 |
-
<b
|
| 128 |
<b>π Username</b>: {("@" + username) if username else "NA"}
|
| 129 |
-
<b
|
| 130 |
-
<b
|
| 131 |
<b>π£ Gbanned</b>: {gban}
|
| 132 |
-
<b
|
| 133 |
<b>π DC ID</b>: {dc_id}
|
| 134 |
-
<b
|
| 135 |
<b>β
VERIFIED</b>: {is_verified}
|
| 136 |
-
<b
|
| 137 |
<b>π€ BOT</b>: {is_bot}
|
| 138 |
<b>π Last seen</b>: <code>{last_date}</code>
|
| 139 |
|
|
@@ -149,21 +151,7 @@ async def chat_info(c: Gojo, chat, already=False):
|
|
| 149 |
username = chat.username
|
| 150 |
total_bot, total_admin, total_bot_admin, total_banned = await count(c, chat.id)
|
| 151 |
title = chat.title
|
| 152 |
-
|
| 153 |
-
type_ = "channel"
|
| 154 |
-
|
| 155 |
-
if chat.type == ChatType.GROUP:
|
| 156 |
-
type_ = "group"
|
| 157 |
-
|
| 158 |
-
if chat.type == ChatType.SUPERGROUP:
|
| 159 |
-
type_ = "supergroup"
|
| 160 |
-
|
| 161 |
-
if chat.type == ChatType.PRIVATE:
|
| 162 |
-
type_ = "private"
|
| 163 |
-
|
| 164 |
-
if chat.type == ChatType.BOT:
|
| 165 |
-
type_ = "bot"
|
| 166 |
-
|
| 167 |
is_scam = chat.is_scam
|
| 168 |
is_fake = chat.is_fake
|
| 169 |
description = chat.description
|
|
@@ -179,16 +167,16 @@ async def chat_info(c: Gojo, chat, already=False):
|
|
| 179 |
|
| 180 |
<b>π ID</b>: <code>{chat_id}</code>
|
| 181 |
<b>π Chat Title</b>: {title}
|
| 182 |
-
<b>β¨ Chat Type</b>: {type_
|
| 183 |
<b>π DataCentre ID</b>: {dc_id}
|
| 184 |
<b>π Username</b>: {("@" + username) if username else "NA"}
|
| 185 |
<b>βοΈ Administrators</b>: {total_admin}
|
| 186 |
<b>π€ Bots</b>: {total_bot}
|
| 187 |
<b>π« Banned</b>: {total_banned}
|
| 188 |
<b>βοΈ Admin π€ Bots</b>: {total_bot_admin}
|
| 189 |
-
<b
|
| 190 |
-
<b
|
| 191 |
-
<b
|
| 192 |
<b>π¨πΏβπ» Description</b>: <code>{description}</code>
|
| 193 |
<b>πͺ Total members</b>: {members}
|
| 194 |
<b>π« Has Protected Content</b>: {can_save}
|
|
|
|
| 82 |
is_restricted = user.is_restricted
|
| 83 |
photo_id = user.photo.big_file_id if user.photo else None
|
| 84 |
is_support = True if user_id in SUPPORT_STAFF else False
|
| 85 |
+
if user_id == Config.BOT_ID:
|
| 86 |
+
is_support = "A person is a great support to himself"
|
| 87 |
if is_support or Config.BOT_ID:
|
| 88 |
if user_id in DEV_USERS:
|
| 89 |
omp = "User is dev"
|
|
|
|
| 124 |
|
| 125 |
<b>π User ID</b>: <code>{user_id}</code>
|
| 126 |
<b>π Link To Profile</b>: <a href='tg://user?id={user_id}'>Click Hereπͺ</a>
|
| 127 |
+
<b>π«΅ Mention</b>: {mention}
|
| 128 |
<b>π£ First Name</b>: <code>{first_name}</code>
|
| 129 |
+
<b>π
Second Name</b>: <code>{last_name}</code>
|
| 130 |
<b>π Username</b>: {("@" + username) if username else "NA"}
|
| 131 |
+
<b>π§βπ» Support</b>: {is_support}
|
| 132 |
+
<b>π₯· Support user type</b>: <code>{omp}</code>
|
| 133 |
<b>π£ Gbanned</b>: {gban}
|
| 134 |
+
<b>β οΈ Gban reason</b>: <code>{reason}</code>
|
| 135 |
<b>π DC ID</b>: {dc_id}
|
| 136 |
+
<b>β RESTRICTED</b>: {is_restricted}
|
| 137 |
<b>β
VERIFIED</b>: {is_verified}
|
| 138 |
+
<b>β FAKE</b> : {is_fake}
|
| 139 |
<b>π€ BOT</b>: {is_bot}
|
| 140 |
<b>π Last seen</b>: <code>{last_date}</code>
|
| 141 |
|
|
|
|
| 151 |
username = chat.username
|
| 152 |
total_bot, total_admin, total_bot_admin, total_banned = await count(c, chat.id)
|
| 153 |
title = chat.title
|
| 154 |
+
type_ = str(chat.type).split(".")[1]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
is_scam = chat.is_scam
|
| 156 |
is_fake = chat.is_fake
|
| 157 |
description = chat.description
|
|
|
|
| 167 |
|
| 168 |
<b>π ID</b>: <code>{chat_id}</code>
|
| 169 |
<b>π Chat Title</b>: {title}
|
| 170 |
+
<b>β¨ Chat Type</b>: {type_}
|
| 171 |
<b>π DataCentre ID</b>: {dc_id}
|
| 172 |
<b>π Username</b>: {("@" + username) if username else "NA"}
|
| 173 |
<b>βοΈ Administrators</b>: {total_admin}
|
| 174 |
<b>π€ Bots</b>: {total_bot}
|
| 175 |
<b>π« Banned</b>: {total_banned}
|
| 176 |
<b>βοΈ Admin π€ Bots</b>: {total_bot_admin}
|
| 177 |
+
<b>βοΈ Scam</b>: {is_scam}
|
| 178 |
+
<b>β Fake</b>: {is_fake}
|
| 179 |
+
<b>β Restricted</b>: {is_restricted}
|
| 180 |
<b>π¨πΏβπ» Description</b>: <code>{description}</code>
|
| 181 |
<b>πͺ Total members</b>: {members}
|
| 182 |
<b>π« Has Protected Content</b>: {can_save}
|