Captain Ezio commited on
Commit
3e6adc0
Β·
1 Parent(s): 858a334

Update info.py

Browse files
Files changed (1) hide show
  1. 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 "Not Linked"}
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