mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 20:29:55 +01:00
Merge pull request #138 from Gems/master
Fix file.download with custom_path
This commit is contained in:
commit
c4f13bd1bb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue