mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Tidy up TelegramBareClient.download_file CDN's mess
This commit is contained in:
@@ -39,6 +39,10 @@ class HigherLevelTests(unittest.TestCase):
|
||||
client.download_media(msg, out)
|
||||
assert sha256(data).digest() == sha256(out.getvalue()).digest()
|
||||
|
||||
out = BytesIO()
|
||||
client.download_media(msg, out) # Won't redirect
|
||||
assert sha256(data).digest() == sha256(out.getvalue()).digest()
|
||||
|
||||
client.log_out()
|
||||
finally:
|
||||
client.disconnect()
|
||||
|
Reference in New Issue
Block a user