From 78167b3c7b69a84779242d71a9dcf5064cb012ae Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 4 Jul 2018 15:25:14 +0200 Subject: [PATCH] Fix downloads not blocking for a result --- telethon/client/downloads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/downloads.py b/telethon/client/downloads.py index 22a7997d..352911c8 100644 --- a/telethon/client/downloads.py +++ b/telethon/client/downloads.py @@ -212,7 +212,7 @@ class DownloadMethods(UserMethods): try: result = sender.send(functions.upload.GetFileRequest( input_location, offset, part_size - )) + )).result() if isinstance(result, types.upload.FileCdnRedirect): # TODO Implement raise NotImplementedError