mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
parent
149685f9d3
commit
b1250e6575
1 changed files with 2 additions and 1 deletions
|
|
@ -247,7 +247,8 @@ class Chat(Object):
|
||||||
is_fake=getattr(channel, "fake", None),
|
is_fake=getattr(channel, "fake", None),
|
||||||
title=channel.title,
|
title=channel.title,
|
||||||
username=getattr(channel, "username", None),
|
username=getattr(channel, "username", None),
|
||||||
photo=types.ChatPhoto._parse(client, getattr(channel, "photo", None), peer_id, channel.access_hash),
|
photo=types.ChatPhoto._parse(client, getattr(channel, "photo", None), peer_id,
|
||||||
|
getattr(channel, "access_hash", 0)),
|
||||||
restrictions=types.List([types.Restriction._parse(r) for r in restriction_reason]) or None,
|
restrictions=types.List([types.Restriction._parse(r) for r in restriction_reason]) or None,
|
||||||
permissions=types.ChatPermissions._parse(getattr(channel, "default_banned_rights", None)),
|
permissions=types.ChatPermissions._parse(getattr(channel, "default_banned_rights", None)),
|
||||||
members_count=getattr(channel, "participants_count", None),
|
members_count=getattr(channel, "participants_count", None),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue