mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Fix NameError on line 240
This commit is contained in:
parent
caf80f239b
commit
1d4948309f
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ class Chat(Object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse_chat_chat(client, chat: raw.types.Chat) -> "Chat":
|
def _parse_chat_chat(client, chat: raw.types.Chat) -> "Chat":
|
||||||
peer_id = -chat.id
|
peer_id = -chat.id
|
||||||
active_usernames = getattr(channel, "usernames", [])
|
active_usernames = getattr(chat, "usernames", [])
|
||||||
usernames = None
|
usernames = None
|
||||||
if len(active_usernames) >= 1:
|
if len(active_usernames) >= 1:
|
||||||
usernames = []
|
usernames = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue