mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-25 03:17:41 +00:00
parent
149685f9d3
commit
b1250e6575
@ -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…
x
Reference in New Issue
Block a user