Fix GROUP check in EntityCache

This commit is contained in:
Lonami Exo 2021-09-24 20:12:23 +02:00
parent debde6e856
commit ce292b36ab

View File

@ -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)