fix Group.pack()'s PackedType check

This commit is contained in:
apepenkov 2023-12-17 22:42:24 +03:00
parent f726d1dcc4
commit 7408a43495

View File

@ -72,7 +72,7 @@ class Group(Chat, metaclass=NoPublicConstructor):
return None
else:
return PackedChat(
ty=PackedType.MEGAGROUP,
ty=PackedType.GIGAGROUP if getattr(self._raw, "gigagroup", False) else PackedType.MEGAGROUP,
id=self._raw.id,
access_hash=self._raw.access_hash,
)