mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-11 00:22:29 +03:00
Update telethon/client/updates.py
Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
parent
ac9765785a
commit
8a9f398f01
|
@ -433,7 +433,7 @@ class UpdateMethods:
|
||||||
if not self._mb_entity_cache.get(peer_id) and peer.id != 136817688:
|
if not self._mb_entity_cache.get(peer_id) and peer.id != 136817688:
|
||||||
is_min = True
|
is_min = True
|
||||||
if isinstance(peer, types.User):
|
if isinstance(peer, types.User):
|
||||||
result_users.update({utils.get_peer_id(peer): peer})
|
result_users[utils.get_peer_id(peer)] = peer
|
||||||
elif isinstance(peer, (types.Chat, types.Channel)):
|
elif isinstance(peer, (types.Chat, types.Channel)):
|
||||||
result_chats.update({utils.get_peer_id(peer): peer})
|
result_chats.update({utils.get_peer_id(peer): peer})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user