Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
Β·
a5d8711
1
Parent(s):
63fbd05
Update info.py
Browse files- 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 |
-
|
| 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 |
|