mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Attach original_update to all events
This commit is contained in:
parent
7ba044730d
commit
5c6ac18a52
|
@ -97,6 +97,7 @@ class EventCommon(abc.ABC):
|
|||
self._chat = None
|
||||
|
||||
self.pattern_match = None
|
||||
self.original_update = None
|
||||
|
||||
self.is_private = isinstance(chat_peer, types.PeerUser)
|
||||
self.is_group = (
|
||||
|
|
|
@ -2323,6 +2323,7 @@ class TelegramClient(TelegramBareClient):
|
|||
event = builder.build(update)
|
||||
if event:
|
||||
event._client = self
|
||||
event.original_update = update
|
||||
try:
|
||||
callback(event)
|
||||
except events.StopPropagation:
|
||||
|
|
Loading…
Reference in New Issue
Block a user