mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Fix GROUP check in EntityCache
This commit is contained in:
parent
debde6e856
commit
ce292b36ab
|
@ -100,7 +100,7 @@ class EntityCache:
|
||||||
if id not in self.__dict__:
|
if id not in self.__dict__:
|
||||||
if ty in (Entity.USER, Entity.BOT):
|
if ty in (Entity.USER, Entity.BOT):
|
||||||
self.__dict__[id] = _tl.InputPeerUser(id, access_hash)
|
self.__dict__[id] = _tl.InputPeerUser(id, access_hash)
|
||||||
elif ty in (Entity.GROUP):
|
elif ty in (Entity.GROUP,):
|
||||||
self.__dict__[id] = _tl.InputPeerChat(id)
|
self.__dict__[id] = _tl.InputPeerChat(id)
|
||||||
elif ty in (Entity.CHANNEL, Entity.MEGAGROUP, Entity.GIGAGROUP):
|
elif ty in (Entity.CHANNEL, Entity.MEGAGROUP, Entity.GIGAGROUP):
|
||||||
self.__dict__[id] = _tl.InputPeerChannel(id, access_hash)
|
self.__dict__[id] = _tl.InputPeerChannel(id, access_hash)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user