mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Fix events.Raw not having ._set_client
This commit is contained in:
parent
3db104c7bc
commit
30ad06f29a
|
@ -2505,7 +2505,11 @@ class TelegramClient(TelegramBareClient):
|
||||||
for builder, callback in self._event_builders:
|
for builder, callback in self._event_builders:
|
||||||
event = builder.build(update)
|
event = builder.build(update)
|
||||||
if event:
|
if event:
|
||||||
|
if hasattr(event, '_set_client'):
|
||||||
event._set_client(self)
|
event._set_client(self)
|
||||||
|
else:
|
||||||
|
event._client = self
|
||||||
|
|
||||||
event.original_update = update
|
event.original_update = update
|
||||||
try:
|
try:
|
||||||
callback(event)
|
callback(event)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user