mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-16 18:31:45 +01:00
small pretty fix for self.data.pop('filename')
This commit is contained in:
parent
8a074fd719
commit
c7f2add463
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class InputFile(object):
|
|||
if isinstance(self.input_file, file):
|
||||
self.input_file_content = self.input_file.read()
|
||||
if 'filename' in self.data:
|
||||
self.filename = self.data['filename']
|
||||
self.filename = self.data.pop('filename')
|
||||
else:
|
||||
self.filename = os.path.basename(self.input_file.name)
|
||||
self.mimetype = mimetypes.guess_type(self.filename)[0] or \
|
||||
|
|
Loading…
Add table
Reference in a new issue