mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix GROUP check in EntityCache
This commit is contained in:
@@ -100,7 +100,7 @@ class EntityCache:
|
||||
if id not in self.__dict__:
|
||||
if ty in (Entity.USER, Entity.BOT):
|
||||
self.__dict__[id] = _tl.InputPeerUser(id, access_hash)
|
||||
elif ty in (Entity.GROUP):
|
||||
elif ty in (Entity.GROUP,):
|
||||
self.__dict__[id] = _tl.InputPeerChat(id)
|
||||
elif ty in (Entity.CHANNEL, Entity.MEGAGROUP, Entity.GIGAGROUP):
|
||||
self.__dict__[id] = _tl.InputPeerChannel(id, access_hash)
|
||||
|
Reference in New Issue
Block a user