diff --git a/telegram/inputfile.py b/telegram/inputfile.py index 9a5103df2..ec42b85ff 100644 --- a/telegram/inputfile.py +++ b/telegram/inputfile.py @@ -67,7 +67,7 @@ class InputFile(object): if isinstance(self.input_file, file): self.input_file_content = self.input_file.read() - if 'filename' in self.data and self.data['filename']: + if 'filename' in self.data: self.filename = self.data['filename'] else: self.filename = os.path.basename(self.input_file.name)