mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-10 16:12:22 +03:00
Update client/src/telethon/_impl/client/types/chat/channel.py
Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
parent
fe87031fbd
commit
c0e09e9820
|
@ -54,11 +54,12 @@ class Channel(Chat, metaclass=NoPublicConstructor):
|
|||
if self._raw.access_hash is None:
|
||||
return None
|
||||
else:
|
||||
ty = PackedType.BROADCAST
|
||||
if getattr(self._raw, "megagroup", False):
|
||||
ty = PackedType.MEGAGROUP
|
||||
elif getattr(self._raw, "gigagroup", False):
|
||||
ty = PackedType.GIGAGROUP
|
||||
else:
|
||||
ty = PackedType.BROADCAST
|
||||
return PackedChat(
|
||||
ty=ty,
|
||||
id=self._raw.id,
|
||||
|
|
Loading…
Reference in New Issue
Block a user