mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 10:45:52 +03:00
Fix Updates object being dispatched to user handlers
This commit is contained in:
parent
38c65adf35
commit
22c8fd7378
|
@ -181,7 +181,7 @@ class UpdateMethods(UserMethods):
|
|||
for u in update.updates:
|
||||
u._entities = entities
|
||||
self._handle_update(u)
|
||||
if isinstance(update, types.UpdateShort):
|
||||
elif isinstance(update, types.UpdateShort):
|
||||
self._handle_update(update.update)
|
||||
else:
|
||||
update._entities = getattr(update, '_entities', {})
|
||||
|
|
Loading…
Reference in New Issue
Block a user