Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
Β·
569ee9b
1
Parent(s):
21c06cf
Update info.py
Browse files- Powers/plugins/info.py +3 -2
Powers/plugins/info.py
CHANGED
|
@@ -155,7 +155,8 @@ async def chat_info(c: Gojo, chat, already=False):
|
|
| 155 |
dc_id = chat.dc_id
|
| 156 |
photo_id = chat.photo.big_file_id if chat.photo else None
|
| 157 |
can_save = chat.has_protected_content
|
| 158 |
-
linked_chat = chat.linked_chat
|
|
|
|
| 159 |
|
| 160 |
caption = f"""
|
| 161 |
π° <b>CHAT INFO</b> π°
|
|
@@ -175,7 +176,7 @@ async def chat_info(c: Gojo, chat, already=False):
|
|
| 175 |
<b>π¨πΏβπ» Description</b>: <code>{description}</code>
|
| 176 |
<b>πͺ Total members</b>: {members}
|
| 177 |
<b>π« Has Protected Content</b>: {can_save}
|
| 178 |
-
<b>π Linked Chat</b>: {linked_chat if linked_chat else
|
| 179 |
|
| 180 |
"""
|
| 181 |
|
|
|
|
| 155 |
dc_id = chat.dc_id
|
| 156 |
photo_id = chat.photo.big_file_id if chat.photo else None
|
| 157 |
can_save = chat.has_protected_content
|
| 158 |
+
linked_chat = chat.linked_chat.username
|
| 159 |
+
linked_id = chat.linked_chat.id
|
| 160 |
|
| 161 |
caption = f"""
|
| 162 |
π° <b>CHAT INFO</b> π°
|
|
|
|
| 176 |
<b>π¨πΏβπ» Description</b>: <code>{description}</code>
|
| 177 |
<b>πͺ Total members</b>: {members}
|
| 178 |
<b>π« Has Protected Content</b>: {can_save}
|
| 179 |
+
<b>π Linked Chat</b>: {linked_chat if linked_chat else linked_id}
|
| 180 |
|
| 181 |
"""
|
| 182 |
|