Add a warning when trying to connect to a different account

Closes #1172, and also fixed a typo.
This commit is contained in:
Lonami Exo
2020-08-08 17:47:58 +02:00
parent 958698bba7
commit ddeefff431
2 changed files with 25 additions and 2 deletions

View File

@@ -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)