mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 20:50:22 +03:00
Fix downloads not blocking for a result
This commit is contained in:
parent
a9e4760216
commit
78167b3c7b
|
@ -212,7 +212,7 @@ class DownloadMethods(UserMethods):
|
||||||
try:
|
try:
|
||||||
result = sender.send(functions.upload.GetFileRequest(
|
result = sender.send(functions.upload.GetFileRequest(
|
||||||
input_location, offset, part_size
|
input_location, offset, part_size
|
||||||
))
|
)).result()
|
||||||
if isinstance(result, types.upload.FileCdnRedirect):
|
if isinstance(result, types.upload.FileCdnRedirect):
|
||||||
# TODO Implement
|
# TODO Implement
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
Loading…
Reference in New Issue
Block a user