mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 14:24:51 +00:00
Add Chat.description for basic chats
This commit is contained in:
parent
8a99f996ab
commit
3dc2a81d72
1 changed files with 1 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ class Chat(Object):
|
||||||
|
|
||||||
if isinstance(full_chat, types.ChatFull):
|
if isinstance(full_chat, types.ChatFull):
|
||||||
parsed_chat = Chat._parse_chat_chat(client, chat)
|
parsed_chat = Chat._parse_chat_chat(client, chat)
|
||||||
|
parsed_chat.description = full_chat.about or None
|
||||||
|
|
||||||
if isinstance(full_chat.participants, types.ChatParticipants):
|
if isinstance(full_chat.participants, types.ChatParticipants):
|
||||||
parsed_chat.members_count = len(full_chat.participants.participants)
|
parsed_chat.members_count = len(full_chat.participants.participants)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue