Skip to content

Commit c4f13bd

Browse files
committed
Merge pull request python-telegram-bot#138 from Gems/master
Fix file.download with custom_path
2 parents 631954e + 7d73973 commit c4f13bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telegram/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def download(self,
7474
url = self.file_path
7575

7676
if custom_path:
77-
filename = basename(custom_path)
77+
filename = custom_path
7878
else:
7979
filename = basename(url)
8080

0 commit comments

Comments
 (0)