mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +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):
|
if isinstance(event, type):
|
||||||
event = event()
|
event = event()
|
||||||
|
|
||||||
# Since we await resolve here we don't need to await resolved.
|
await event.resolve(self._client)
|
||||||
# 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()
|
|
||||||
|
|
||||||
counter = Conversation._custom_counter
|
counter = Conversation._custom_counter
|
||||||
Conversation._custom_counter += 1
|
Conversation._custom_counter += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user