Captain Ezio commited on
Commit
5012c18
Β·
1 Parent(s): 5a8f165

Update info.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/info.py +1 -16
Powers/plugins/info.py CHANGED
@@ -148,22 +148,11 @@ async def chat_info(c: Gojo, chat, already=False):
148
  description = chat.description
149
  members = chat.members_count
150
  is_restricted = chat.is_restricted
151
- if is_restricted:
152
- reasons = chat.restrictions
153
- else:
154
- reasons = "Chat is not restricted..."
155
  invite_link = chat.invite_link
156
  dc_id = chat.dc_id
157
  photo_id = chat.photo.big_file_id if chat.photo else None
158
  can_save = chat.has_protected_content
159
- sticker_set = chat.sticker_set_name
160
- linked_chat = chat.linked_chat
161
- reaction = chat.available_reactions
162
- if reaction:
163
- reactions = "Enabled"
164
- else:
165
- reactions = "Disabled"
166
-
167
  caption = f"""
168
  πŸ”° <b>CHAT INFO</b> πŸ”°
169
 
@@ -179,14 +168,10 @@ async def chat_info(c: Gojo, chat, already=False):
179
  <b>🧐 Scam</b>: {is_scam}
180
  <b>🀨 Fake</b>: {is_fake}
181
  <b>🧐 Restricted</b>: {is_restricted}
182
- <b>🀭 Reasons</b>: {reasons}
183
  <b>πŸ‘¨πŸΏβ€πŸ’» Description</b>: <code>{description}</code>
184
  <b>πŸ‘ͺ Total members</b>: {members}
185
- <b>πŸ“Ž Link to the chat</b>: <a href={invite_link}>Click HereπŸšͺ</a>
186
  <b>🚫 Has Protected Content</b>: {can_save}
187
- <b>πŸ˜‹ Sticker set</b>: {sticker_set}
188
  <b>πŸ”— Linked Chat</b>: {linked_chat if linked_chat else "Not Linked"}
189
- <b>πŸ”₯ Reactions</b>: {reactions}
190
 
191
  """
192
 
 
148
  description = chat.description
149
  members = chat.members_count
150
  is_restricted = chat.is_restricted
 
 
 
 
151
  invite_link = chat.invite_link
152
  dc_id = chat.dc_id
153
  photo_id = chat.photo.big_file_id if chat.photo else None
154
  can_save = chat.has_protected_content
155
+
 
 
 
 
 
 
 
156
  caption = f"""
157
  πŸ”° <b>CHAT INFO</b> πŸ”°
158
 
 
168
  <b>🧐 Scam</b>: {is_scam}
169
  <b>🀨 Fake</b>: {is_fake}
170
  <b>🧐 Restricted</b>: {is_restricted}
 
171
  <b>πŸ‘¨πŸΏβ€πŸ’» Description</b>: <code>{description}</code>
172
  <b>πŸ‘ͺ Total members</b>: {members}
 
173
  <b>🚫 Has Protected Content</b>: {can_save}
 
174
  <b>πŸ”— Linked Chat</b>: {linked_chat if linked_chat else "Not Linked"}
 
175
 
176
  """
177