mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +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…
Reference in New Issue
Block a user