mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 14:24:51 +00:00
Fix megagroup attribute on ChatForbidden objects
This commit is contained in:
parent
bf9e186414
commit
9b28a120e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue