Attach original_update to all events

This commit is contained in:
Lonami Exo 2018-04-28 12:58:41 +02:00
parent 7ba044730d
commit 5c6ac18a52
2 changed files with 2 additions and 0 deletions

View File

@ -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 = (

View File

@ -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: