Use custom.Message in events

This commit is contained in:
Lonami Exo
2018-05-31 13:30:22 +02:00
parent b241d80958
commit 9e4854fcce
5 changed files with 22 additions and 12 deletions

View File

@@ -2416,7 +2416,7 @@ class TelegramClient(TelegramBareClient):
for builder, callback in self._event_builders:
event = builder.build(update)
if event:
event._client = self
event._set_client(self)
event.original_update = update
try:
callback(event)