mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Add a warning when trying to connect to a different account
Closes #1172, and also fixed a typo.
This commit is contained in:
@@ -562,7 +562,7 @@ class DownloadMethods:
|
||||
# Streaming `media` to an output file
|
||||
# After the iteration ends, the sender is cleaned up
|
||||
with open('photo.jpg', 'wb') as fd:
|
||||
async for chunk client.iter_download(media):
|
||||
async for chunk in client.iter_download(media):
|
||||
fd.write(chunk)
|
||||
|
||||
# Fetching only the header of a file (32 bytes)
|
||||
|
Reference in New Issue
Block a user