Move TelegramClient extensions to own class

This commit is contained in:
Tulir Asokan
2018-02-05 17:08:00 +02:00
parent c139e24bf4
commit 11eb9277ed
4 changed files with 97 additions and 75 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ class Puppet:
photo_id = f"{photo.volume_id}-{photo.local_id}"
if self.photo_id != photo_id:
try:
file = source.download_file(photo)
file = source.client.download_file_bytes(photo)
except LocationInvalidError:
return False
uploaded = self.intent.upload_file(file)