mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Attach original_update to all events
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user