mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Fix Conversation.wait_event not resolving them (from d474458
)
This commit is contained in:
parent
dc77136453
commit
dedbf29ca4
|
@ -260,10 +260,7 @@ class Conversation(ChatGetter):
|
|||
if isinstance(event, type):
|
||||
event = event()
|
||||
|
||||
# Since we await resolve here we don't need to await resolved.
|
||||
# We know it has already been resolved, unlike when normally
|
||||
# adding an event handler, for which a task is created to resolve.
|
||||
await event.resolve()
|
||||
await event.resolve(self._client)
|
||||
|
||||
counter = Conversation._custom_counter
|
||||
Conversation._custom_counter += 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user