mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Simplify event resolving logic
Although this commit introduces a race condition since an event may only be half-resolved. A lock is thus needed, but it depends on an event-loop to which we don't have access in the class-level.
This commit is contained in:
@@ -27,7 +27,7 @@ class Raw(EventBuilder):
|
||||
self.types = tuple(types)
|
||||
|
||||
async def resolve(self, client):
|
||||
pass
|
||||
self.resolved = True
|
||||
|
||||
@classmethod
|
||||
def build(cls, update):
|
||||
|
Reference in New Issue
Block a user