Update telethon/client/updates.py

Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
Kacnep89 2023-04-04 22:32:52 +05:00 committed by GitHub
parent ac9765785a
commit 8a9f398f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,7 +433,7 @@ class UpdateMethods:
if not self._mb_entity_cache.get(peer_id) and peer.id != 136817688:
is_min = True
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)):
result_chats.update({utils.get_peer_id(peer): peer})