From dedbf29ca416ecb04473a9dd687eded617593adc Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Fri, 5 Oct 2018 13:42:07 +0200 Subject: [PATCH] Fix Conversation.wait_event not resolving them (from d474458) --- telethon/tl/custom/conversation.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/telethon/tl/custom/conversation.py b/telethon/tl/custom/conversation.py index f8d9cc5b..66ec79f8 100644 --- a/telethon/tl/custom/conversation.py +++ b/telethon/tl/custom/conversation.py @@ -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