mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-27 08:50:38 +01:00
Fix file.download with custom_path
This commit is contained in:
parent
631954e5d9
commit
7d7397317e
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