Captain Ezio commited on
Commit
26ed39a
Β·
1 Parent(s): e2a5387

Update info.py

Browse files
Files changed (1) hide show
  1. 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>πŸ—£ Mention</b>: {mention}
126
  <b>πŸ—£ First Name</b>: <code>{first_name}</code>
127
- <b>πŸ—£ Second Name</b>: <code>{last_name}</code>
128
  <b>πŸ” Username</b>: {("@" + username) if username else "NA"}
129
- <b>πŸ₯Έ Support</b>: {is_support}
130
- <b>πŸ€“ Support user type</b>: <code>{omp}</code>
131
  <b>πŸ’£ Gbanned</b>: {gban}
132
- <b>🀭 Gban reason</b>: <code>{reason}</code>
133
  <b>🌐 DC ID</b>: {dc_id}
134
- <b>🧐 RESTRICTED</b>: {is_restricted}
135
  <b>βœ… VERIFIED</b>: {is_verified}
136
- <b>🧐 FAKE</b> : {is_fake}
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
- if chat.type == ChatType.CHANNEL:
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_.upper()}
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>🧐 Scam</b>: {is_scam}
190
- <b>🀨 Fake</b>: {is_fake}
191
- <b>🧐 Restricted</b>: {is_restricted}
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}