mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-20 13:31:00 +03:00
fix Group.pack()'s PackedType check
This commit is contained in:
parent
f726d1dcc4
commit
7408a43495
|
@ -72,7 +72,7 @@ class Group(Chat, metaclass=NoPublicConstructor):
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
return PackedChat(
|
return PackedChat(
|
||||||
ty=PackedType.MEGAGROUP,
|
ty=PackedType.GIGAGROUP if getattr(self._raw, "gigagroup", False) else PackedType.MEGAGROUP,
|
||||||
id=self._raw.id,
|
id=self._raw.id,
|
||||||
access_hash=self._raw.access_hash,
|
access_hash=self._raw.access_hash,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user