mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Fix megagroup attribute on ChatForbidden objects
This commit is contained in:
parent
bf9e186414
commit
9b28a120e2
@ -221,7 +221,7 @@ class Chat(Object):
|
||||
|
||||
return Chat(
|
||||
id=peer_id,
|
||||
type="supergroup" if channel.megagroup else "channel",
|
||||
type="supergroup" if getattr(channel, "megagroup", None) else "channel",
|
||||
is_verified=getattr(channel, "verified", None),
|
||||
is_restricted=getattr(channel, "restricted", None),
|
||||
is_creator=getattr(channel, "creator", None),
|
||||
|
Loading…
x
Reference in New Issue
Block a user