Fix file.download with custom_path

This commit is contained in:
Eduard Gomolyako 2015-12-27 04:01:13 +03:00
parent 631954e5d9
commit 7d7397317e

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)