2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-05 00:35:10 +00:00

Merge branch 'master' into flexible_media_downloads

This commit is contained in:
Eric Blundell
2018-03-20 22:28:42 -05:00
committed by GitHub
5 changed files with 41 additions and 26 deletions

View File

@@ -582,6 +582,9 @@ class Client:
progress=progress
)
if tmp_file_name is None:
return None
if file_name is not None:
path[0] = os.path.join(download_directory, file_name)

View File

@@ -54,6 +54,7 @@ class Connection:
def close(self):
self.connection.close()
log.info("Disconnected")
def send(self, data: bytes):
with self.lock: