Merge pull request #138 from Gems/master

Fix file.download with custom_path
This commit is contained in:
Jannes Höke 2015-12-28 12:27:26 +01:00
commit c4f13bd1bb

View file

@ -74,7 +74,7 @@ class File(TelegramObject):
url = self.file_path
if custom_path:
filename = basename(custom_path)
filename = custom_path
else:
filename = basename(url)